eseunghwan / python_shell.dart

Python Environment Manager and Executor for dart and flutter
MIT License
3 stars 3 forks source link

Executing file with Program arguments #3

Open guyluz11 opened 1 year ago

guyluz11 commented 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?.