The easiest way to execute a Python program is by using the command prompt or terminal. Navigate to the directory where the Python file is located, and type python filename.py (without the quotes) on the command line.