python use console command code example
Example 1: python run command
import os
os.system('cmd /k "Your Command Prompt Command"')
Example 2: how to run cmd command python
import subprocess
subprocess.run(["ls", "-l"])
import os
os.system('cmd /k "Your Command Prompt Command"')
import subprocess
subprocess.run(["ls", "-l"])