Welcome, future coder! 👋 In this first module, you’ll install Python, set up your coding environment, and write your very first program. By the end, you’ll have a working setup and a cool “Hello, World!” running on your own computer. Let’s go! 🚀
Python is a free programming language. Go to python.org/downloads and click the big yellow “Download Python 3.12” button. Run the installer and tick the box that says “Add Python to PATH” — super important!
We recommend Visual Studio Code (VS Code) – it’s free, friendly, and used by pros. Download it from code.visualstudio.com. After installing, open it and add the Python extension (click the Extensions icon and search for “Python”).
Open VS Code → File → New File → save it as hello.py.
The .py tells the computer it’s a Python file. Now type this exact code:
Then press Ctrl + S (or Cmd + S on Mac) to save.
In VS Code, click the ▶ Run button in the top right (or right-click the file and choose “Run Python File in Terminal”). You’ll see a terminal open at the bottom and…
🎉 Boom! You just wrote and ran your first Python program. High five! ✋
The REPL (Read-Eval-Print Loop) lets you try Python instantly. Open a terminal (in VS Code:
Terminal → New Terminal) and type python (or python3 on Mac/Linux).
You’ll see >>>. Try these:
Type exit() to leave the REPL. Easy peasy!
Create a new file called about_me.py. Write a program that prints:
Replace [your name] with your real name. Run it and see your custom message!
print("Hello", "my name is Alex") — the comma adds a space automatically.