Open guyluz11 opened 1 year ago
In python (like all programming languages) there is an option to execute the code while giving the program some input from outside.
In python you can access the arguments like this
import sys sys.argv[0] sys.argv[1] sys.argv[2]
I know that running from the command line I can pass the values like this
python fileName.py test 553 6
How can I pass arguments using python shell?.
In python (like all programming languages) there is an option to execute the code while giving the program some input from outside.
In python you can access the arguments like this
I know that running from the command line I can pass the values like this
python fileName.py test 553 6
How can I pass arguments using python shell?.