import os
os.system("ma Commande")
#Exemple:
os.system("cd Documents")
import os
os.system('cmd /k "Your Command Prompt Command"')
// To run pytho script from CMD
// type python and the name of the file. Assuming hello.py
python hello.py
$ pipenv run python main.py
python filename.py
import os
os.system("Command") # this is your cmd/terminal
import os
os.system('cmd /k "Your Command Prompt Command"')
# press [windows] + [R] (on windows only)
# use the command : cd/the_way_of_your_program
# and now use this command :
py the_name_of_your_program.py
# don't forget to write the extension (py for python)
# at the end of your program name
# If the .py file is on the desktop, to run the file:
cd Desktop
FileName.py
just write your file name and hit enter