lesson 3:1:1 from blocks to text
Graduating to Thonny
Hello and welcome to text-based programming! You have already learned how to think like a programmer using blocks in Key Stage 2. Now, you are going to learn how to write programs like a professional, using a real-world language called Python.
Your New Coding Environment: The IDE
From now on, you'll be using an Integrated Development Environment, or IDE. A popular one for learning Python is called Thonny.

The Thonny Interface
An IDE is just a program that bundles all the tools a programmer needs into one place. For us, it has two super-important panels:
The Editor (top panel): This is just like a text editor (like Notepad). This is where we write and save our main program, which is called our source code.
The Shell (bottom panel): This is where our program runs. We will see all our output here (like any text we print), and we can also use it to quickly test single lines of code and interact with our program.

Task 1 Code Translator

Your first program
The first command (or function) every programmer usually learns is
print()
. Its job is simple: it tells the computer to display whatever you put inside the parentheses to the shell. When we want to print text, we have to tell Python that it is text. We do this by wrapping it in quotation marks (""). Any text inside quotes is called a string.
Try running the following code. Experiment by changing the text inside the quotation marks and see what happens.
Adding Comments
One last thing! Programmers need to leave notes for other humans (and for their future selves) to explain what their code does. We do this with comments. In Python, any line that starts with a hash symbol # is a comment. The computer ignores it completely.

Try running the following Python script and notice what happens in the shell.

Task 2 A Greeting (and how to break it)

Last modified: September 8th, 2025