Python source files use the .py extension and are called modules. With a Python module hello.py, the easiest way to run it is with the shell command python3 hello.py Alice which calls the Python interpreter to execute the code in hello.py, passing it the command line argument Alice. See the official command line and environment — Python 3.7 documentation on all the different options you have when running Python from the command-line.
- Python source code
- Command-line arguments and '__main__'
- More on Modules and their Namespaces
- Incremental Development