CMD /K - execute a command then remain
import os
os.system('cmd /k "Your Command Prompt Command"')
import os
os.system("ma Commande")
#Exemple:
os.system("cd Documents")
import os
os.system("javac lolol.java")# or something....
// To run pytho script from CMD
// type python and the name of the file. Assuming hello.py
python hello.py
os.system("start /wait cmd /c {command}")
import os
os.system("Command") # this is your cmd/terminal
import os
os.system('cmd /k "Your Command Prompt Command"')
# If the .py file is on the desktop, to run the file:
cd Desktop
FileName.py
just write your file name and hit enter