Argument Passing at Runtime in Python

 

Code


# test.py

import os

import sys

input_path = sys.argv[1]

input_path1 = sys.argv[2]

print(" \nYou Given : ", input_path, input_path1)


> python test.py Kuntal Samanta


Screenshot :




Quiz Level 1

Quiz Level 2


Request Me


Comments

Popular posts from this blog

How To Create .ENV File in Python

Create a Large file for Test Data Processing using Python

How to solve the Liner Equation using Python