fordham-css / TryPy

"If I have seen further, it is by standing on the shoulders of giants" - Sir Isaac Newton
MIT License
0 stars 0 forks source link

sys Module Demo #9

Open nickdibari opened 6 years ago

nickdibari commented 6 years ago

The sys module is a standard library package that offers an interface to the Python interpreter. It can be used to retrieve the command line arguments passed to a program, inspect information about the exception currently being handled, and more.

Suggest demo implements a program that takes command line arguments to alter behavior of the program. Show how you can access the list of command line arguments with sys.argv and process the values stored. Note that demo should at least hint to argparse, as it is a much better library for the purpose of parsing command line arguments.

Python Docs: https://docs.python.org/2/library/sys.html