Install Python from python.org or your system package manager
Save the file with a .py extension
Open a terminal or command prompt
Navigate to the folder containing the .py file
Run `python filename.py` or `python3 filename.py`
If needed, install required packages with `pip install package_name`
If using an IDE, open the .py file and run it from the editor
