Abra o terminal e execute python arquivo.py ou python3 arquivo.py.
python arquivo.py
python3 arquivo.py
Arquivos Python usam extensão .py e são interpretados diretamente.
Anterior : Como fazer contagem regressiva com range em Python