run python script on windows code example
Example 1: run python.py file
python3 file.py
Example 2: how to run python in terminal
$ python3 helloworld.py
$ python helloworld.py
Example 3: Windows 10 running python scripts from cmd
cd (path to directory)
python name.py
Example 4: how to run python program
move to the directory where your program lies
open cmd
python first_script.py(your file name)
Example 5: how to execute a python script
C:\Python27\python.exe C:\Users\Username\Desktop\my_python_script.py