How to Run Python Script in Terminal?

Install Python

Open Terminal

Navigate to the script folder

Run `python script.py`

If needed, run `python3 script.py`

Press Enter

Check the output in Terminal

Suggested for You

Trending Today