run commands in cmd with python code example
Example 1: how to run cmd line commands in python
import os
os.system("javac lolol.java")# or something....
Example 2: how to run cmd command python
import subprocess
subprocess.run(["ls", "-l"])
import os
os.system("javac lolol.java")# or something....
import subprocess
subprocess.run(["ls", "-l"])