Throughout this section, we'll explain the main modules you can find in Python for working with the Python interpreter, the operating system, and executing commands with the sub-procces module.
Introducing system modules in python
The system module
The sys module will allow us to interact with the interpreter and it contains most of the information related to the execution in progress, updated by the interpreter, as well as a series of functions and low-level objects.
sys.argv contains the list of parameters for executing a script. The first item in the list is the name of the script followed by the list of parameters.
We may, for example, want to parse command-line arguments at runtime. The sys.argv list contains all...