[python] How to run Python script on terminal?

I want to run a Python script in Terminal, but I don't know how? I already have a saved file called gameover.py in the directory "/User/luca/Documents/python".

This question is related to python macos terminal

The answer is

You need python installed on your system. Then you can run this in the terminal in the correct directory:

python gameover.py

Similar questions with python tag:

Similar questions with macos tag:

Similar questions with terminal tag: