How to Get the Prompt in Python
When you create Python programs sometimes you might want to have your script open a different program on the computer such as the Windows Command Prompt. This is known as importing the program. To open the Windows Command Prompt in Python use the "os" command.
Instructions
-
-
1
Open your Python script and go to the location where you want to get the Command Prompt.
-
2
Type "import os" and press "Enter."
-
-
3
Type "os.system("cmd.exe")" and press "Enter."
-
4
Save and close your script.
-
1