๐ Beginning Python Programming
/
Basic Python
/
Running Python
Running .py file
Running in command-line / terminal
- Put python code in anyname.py file
- Open terminal
- Navigate to the folder containing the file
- Type python anyname.py
Running by double-clicking .py file on windows
- Save the file to file system.
- Double click the .py file
- Command prompt launches and the python script runs
- Command prompt automatically closes after completion.