Install Python via python.org or via Homebrew: brew install python
3. Configuration & Extensions
Open VSCode and press Ctrl+Shift+X to open the Extensions marketplace. Install these:
Python (by Microsoft) — Required
Python Debugger (by Microsoft) — Required
Jupyter (by Microsoft) — Highly Recommended for the Onramp
Here you go — the full response rewritten purely in Markdown, clean and ready to paste into GitBook.
4. Verification: Hello World
To ensure everything is working, create a file named hello.py and paste the following:
How to Create a New File (Beginner‑Friendly)
Here are the simplest and more detailed methods.
Fastest Method (Works in Most Editors)
Keyboard shortcut:
Ctrl + N → create a new file
Ctrl + S → save it as hello.py
This is the quickest, universal method.
Creating a New File in VS Code
Method 1: Using the Explorer Panel
Open VS Code
Click the Explorer icon on the left
Click New File
Type hello.py
Paste the code and save
Method 2: Using the Menu
File → New Text File
Paste the code
File → Save As…
Name it hello.py
Creating a New File in PyCharm
Method 1: Right‑Click Method
In the Project panel, right‑click the folder where you want the file
Select New → Python File
Enter hello (PyCharm adds .py automatically)
Paste the code
Method 2: Menu Method
File → New… → Python File
Name it hello
Paste the code
To Run: Click the Play Button in the top-right corner. If prompted, select the "Recommended" Python Interpreter.
Submission Requirements
What to submit: A screenshot or text copy of your terminal output showing:
The "Hello world!" message
Your name
Your student number
Show your full IDE setup
5. Our Philosophy on AI Tools
Understanding > Syntax Tools like GitHub Copilot are incredible boosters. For this module, feel free to use AI for boilerplate code. What matters is that you understand the logic, the efficiency ( notation), and the "Why."
If the AI writes the algorithm for you and you can't explain how it works, you haven't learned the material. Use it as a tutor, not a ghostwriter.
Troubleshooting
Problem: "Run Python File" button doesn't appear
Solution: Make sure you saved the file with .py extension and installed the Python extension
Problem: "Python is not recognized" or "No Python interpreter found"
Solution: Reinstall Python and make sure to check "Add Python to PATH" during installation (Windows), or verify installation with python3 --version in terminal (Linux)
Problem: Terminal shows an error about execution policy (Windows)
Solution: Open PowerShell as Administrator and run:
Problem: Wrong Python version selected
Solution: Click on the Python version in the bottom-right corner of VSCode and select a different interpreter from the list