Skip to content

sys Module Demo #9

@nickdibari

Description

@nickdibari

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions