I am originally a C programmer. I have seen numerous tricks and \"hacks\" to read many different arguments.
What are some of the ways Python programmers can do this
If you need something fast and not very flexible
main.py:
import sys first_name = sys.argv[1] last_name = sys.argv[2] print("Hello " + first_name + " " + last_name)
Then run python main.py James Smith
python main.py James Smith
to produce the following output:
Hello James Smith