run python from windows cmd code example
Example 1: how to execute a cmd command in python
CMD /K - execute a command then remain
import os
os.system('cmd /k "Your Command Prompt Command"')
Example 2: Windows 10 running python scripts from cmd
# move to the directory where the script is located and run it like so
cd (path to directory)
python name.py