Course: Python Foundations I Age Group: 9-13 years old Duration: 60-75 minutes Format: Live online via Zoom Term: 1 of 8 | Week: 1 of 8
print() command does"Hello! I'm BrightByte, your AI coding companion! I'm here to guide you through every lesson. Today is a very special day ā it's your very first coding class! By the end of today, you'll have written your first real Python program. Let's go!"
BrightByte is an AI. And by the end of this term, you'll understand exactly how AI like BrightByte works ā because you'll be writing code yourself!
Have you ever wondered how Netflix knows what show you'll like? Or how your phone unlocks when it sees your face?
That's Artificial Intelligence at work!
AI is when computers are programmed to learn, think, and make decisions ā almost like a human brain.
But here's the secret: AI doesn't think on its own. Humans write code (instructions) that teach computers how to behave smartly. And that's exactly what YOU are going to learn!
You might not realise it, but you probably used AI today:
| AI Tool | What it Does |
|---|---|
| Siri / Alexa | Understands your voice and answers questions |
| Netflix / YouTube | Recommends videos you'll enjoy |
| Google Translate | Converts text between languages instantly |
| Face Unlock | Recognises your face to open your phone |
| Snapchat Filters | Detects your face and adds effects |
| Video Game Enemies | React intelligently to what you do |
Think about your morning. What AI did you interact with? Type your answer in the Zoom chat or unmute and share with the class!
Imagine teaching a dog a new trick:
AI learns the same way ā except instead of treats, it uses data (millions of examples). Programmers write the instructions that teach AI how to learn.
That's why coding is a superpower. The people who write that code are shaping the future!
Imagine you want a robot to make you a sandwich. You'd have to give it very specific, step-by-step instructions:
Computers are like very fast, very obedient robots ā but they need exact instructions. Writing those instructions is called programming or coding.
Python is a programming language ā a special way of writing instructions that computers can understand.
Think of it like this:
Python is used by some of the biggest companies and projects in the world:
| Who Uses Python | What For |
|---|---|
| š Google | Search engine and AI research |
| šø Instagram | Running the app for 2 billion users |
| š NASA | Analysing space data |
| š® Game studios | Building games and simulations |
| š¤ AI researchers | Building tools like ChatGPT |
Before we write any code, we need our coding tool. We'll use Trinket ā a free, online Python editor that works right in your browser. No installation needed!
š” Zoom Tip: You'll have two windows open at the same time ā Zoom and Trinket. Put them side by side on your screen, or switch between them using Alt+Tab (Windows) or Cmd+Tab (Mac).
Step 1: Stay on the Zoom call Keep your Zoom window open ā your teacher will walk you through every step by sharing their screen. Follow along on your own device at the same time.
Step 2: Open a new browser tab Open Google Chrome or Firefox alongside Zoom. Type this in the address bar:
trinket.io
Step 3: Create a free account
Step 4: Create a new Python Trinket
Step 5: Tour the interface
āāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāā
ā ā ā
ā CODE PANEL ā OUTPUT PANEL ā
ā (Left side) ā (Right side) ā
ā ā ā
ā This is where ā This is where ā
ā you TYPE your ā you SEE the ā
ā code ā results ā
ā ā ā
āāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāā
ā¶ RUN button is at the top!
Your teacher will show this live on Zoom screen share ā match what you see on their screen!
Step 6: Run your first test In the code panel, type:
print("Trinket is working!")
Then click the ā¶ Run button. You should see Trinket is working! appear on the right side!
Give a thumbs up in Zoom reactions when it works! š
Step 7: Save your work
Note: If you get stuck at any step, type your question in the Zoom chat and your teacher will help you!
Every programmer in the world has written this program. Now it's your turn!
Type this exactly in your Trinket code panel:
print("Hello, World!")
Click ā¶ Run.
You should see:
Hello, World!
š Congratulations ā you are officially a programmer!
Let's break it down:
print("Hello, World!")
| Part | What It Is | What It Does |
|---|---|---|
print | A command (function) | Tells Python to display something |
( ) | Parentheses | Hold what we want to print |
"Hello, World!" | A string (text) | The message we want to show |
Think of
print()like a megaphone š£ ā whatever you put inside, Python shouts it onto the screen!
Now let's personalise it. Change your code to:
print("Hello, World!") print("My name is Alex!") print("I am learning Python!") print("Today is my first coding lesson!")
Click ā¶ Run and see all four lines appear!
Try it yourself: Replace Alex with your own name. What do you see?
Mistake 1: Forgetting the quotes
ā Wrong:
print(Hello, World!)
Error: Hello is not defined
ā Correct:
print("Hello, World!")
Mistake 2: Wrong brackets or missing brackets
ā Wrong:
print["Hello!"]
TypeError: 'builtin_function_or_method' object is not subscriptable
ā Correct:
print("Hello!")
Mistake 3: Spelling print wrong
ā Wrong:
Print("Hello!")
NameError: name 'Print' is not defined
ā Correct:
print("Hello!")
Python is case-sensitive!
print("I love maths!") print("My favourite food is jollof rice š") print("One day I will build an app!") print("Python is cooler than I expected!")
Go ahead ā what do YOU want to tell the world? Type it and run it!
Now let's build something together as a class ā live on Zoom!
Here's how it works:
print("My name is [YOUR NAME] and I love [YOUR THING]! š®")
Example class program:
print("My name is Sofia and I love art! šØ") print("My name is Kwame and I love football! ā½") print("My name is Zara and I love music! šµ") print("My name is James and I love video games! š®")
When the full program runs ā react on Zoom! š
Bonus Challenge: Add a creative emoji to your line ā the more unique the better! š
In Week 2, we'll explore the print() command even further:
print("I love coding " * 3) print("Name: " + "Alex") print("ā" * 10)
We'll learn how to create patterns, repeat text, and combine words together. It's going to be a lot of fun!
Look how much you've learned in just one lesson:
print() does"Today, you took your very first step into the world of coding. Every great programmer ā every AI engineer, every app developer ā started exactly where you are right now. You should be incredibly proud!" ā BrightByte š¤
Before next class, write an "About Me" program in Trinket.
Requirements:
Example:
print("Hi! My name is Kofi.") print("I am 11 years old.") print("I love playing chess.") print("Fun fact: I have a pet tortoise š¢") print("I am excited to learn Python!")
Bonus: Can you add 5 more lines and make it even more creative?
Submit: Save your Trinket, click Share, copy the link, and paste it in the class WhatsApp/email or wherever your teacher asks.
See you next week ā keep coding! šāØ
Sign in to track your progress