how to write python program in command prompt code example
Example 1: python write to command prompt
import os
os.system("start /B start cmd.exe @cmd /k {command}")
Example 2: how to run python program
move to the directory where your program lies
open cmd
python first_script.py(your file name)