I'm just new to Python and I want to ask:
How can I process input values from command line with Python? For example:
./mathpy.py --plus 2 5
result: 7
or
./mathpy.py --max 2 5
result: 5
Some examples would be great.
Thanks a lot.
I'm just new to Python and I want to ask:
How can I process input values from command line with Python? For example:
./mathpy.py --plus 2 5
result: 7
or
./mathpy.py --max 2 5
result: 5
Some examples would be great.
Thanks a lot.