This video shows an alternative way to run your code step by step. It explains how to use the change directory (cd) command and run your program using the terminal.
1-Make sure you first create your Python project folder in Visual Studio Code.
2-During the exam, the internet may be disabled, so you might not be able to use the usual Run button.
In the terminal:
Type cd and enter your folder location (without the Python file name).
Then type python filename.py or py filename.py
Press Enter to run your code and see the result.
Download
0 formats
No download links available.
How to Run Python Code in VS Code Using Terminal (Exam Method) | NatokHD