N
# Save the script in a file with .py extension
# run the script using the below command
python fileName.py
N
import os
os.system("ma Commande")
#Exemple:
os.system("cd Documents")
N
#By Uku Loskit
import os
os.system("ls -l")
N
CMD /K - execute a command then remain
import os
os.system('cmd /k "Your Command Prompt Command"')
N
pip3 install -r requirements.txt
python3 app.py
N
import subprocess
subprocess.run(["ls", "-l"])