Install Python from python.org or your package manager
Save your code in a file with a .py extension
Open a terminal or command prompt
Navigate to the folder containing the script
Run `python script.py`
If needed, run `python3 script.py`
On Windows, you can also run `py script.py`
If using an IDE, click the Run button
If using Jupyter Notebook, run the cell containing the code
If using an interactive shell, type the commands directly
