python code to run the cmd command in windows code example
Example 1: python code to open windows command prompt
import os
def mycmd():
os.system('cmd /c "ipconfig"')
mycmd()
Example 2: Run python program from cmd or terminal
pip3 install -r requirements.txt
python3 app.py