+ 1
You can use getopt module to take arguments at commandline
here is I have coded example
https://code.sololearn.com/cO56oW85se2J/?ref=app
+ 1
You can not actually run it on sololearner
copy it and run it on pc or here is thread I have thread for you
https://www.sololearn.com/discuss/1246761/?ref=app
+ 1
Also my phone is rooted so I have access to the functionality I mentioned in above thread
if you don't want to root and have enough space on your device go for best answer in that thread
+ 1
Yes it takes input on runtime
like if u save it on ur pc or android with name test.py
you have to do as follows
open terminal if your using linux or cmd if windows
then type
python3 text.py -n Yugabdh -l java
you can also use long switches like --name
this code will also display help for it if u pass -h switch
just like any other commandline tool
+ 1
Cheers