subprocess python rum command code example
Example 1: python run command
import os
os.system('cmd /k "Your Command Prompt Command"')
Example 2: python execute shell command
python3 yourcode.py
or
python yourcode.py
import os
os.system('cmd /k "Your Command Prompt Command"')
python3 yourcode.py
or
python yourcode.py