Python interpreter
To run Python programs, you will need the Python interpreter and possibly a graphical editor. A Python interpreter executes Python code (sometimes called programs).
Comments
- Using the hash-mark sign (#)
# This is a comment.
# This is a comment.
# This is a comment.
- Using the three double quotes
"""
This is a multiline command
This is a multiline command
This is a multiline command
"""
Run Python
We can start a Python program with the terminal or command line. This works on all platforms (Mac OS, Windows, Linux).
To start the program, we have to open the command line and type:
python hello.py