Kids Learn AI Logo
Lesson 1: Welcome to Coding! šŸ¤–šŸ
Discover what AI is, set up your Trinket coding environment, and write your very first Python program
Lesson 1 of 8

Level 1, Lesson 1: Welcome to Coding! šŸ¤–šŸ

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


šŸŽÆ What You'll Learn Today

  • What Artificial Intelligence (AI) is and how it's already part of your life
  • What Python is and why it's one of the best languages to learn
  • How to set up and use Trinket (your online coding tool)
  • How to write and run your very first Python program
  • What the print() command does

šŸ¤– Meet BrightByte — Your AI Guide!

"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!


🧠 Part 1: What is Artificial Intelligence (AI)?

The Big Question

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!


AI Is Already Everywhere Around You

You might not realise it, but you probably used AI today:

AI ToolWhat it Does
Siri / AlexaUnderstands your voice and answers questions
Netflix / YouTubeRecommends videos you'll enjoy
Google TranslateConverts text between languages instantly
Face UnlockRecognises your face to open your phone
Snapchat FiltersDetects your face and adds effects
Video Game EnemiesReact intelligently to what you do

šŸ’¬ Class Discussion

Think about your morning. What AI did you interact with? Type your answer in the Zoom chat or unmute and share with the class!


How Does AI Learn?

Imagine teaching a dog a new trick:

  1. You show the dog what to do
  2. When it gets it right, you reward it
  3. It keeps practising until it remembers

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!


šŸ Part 2: What is Python?

What is Programming?

Imagine you want a robot to make you a sandwich. You'd have to give it very specific, step-by-step instructions:

  1. Go to the kitchen
  2. Open the bread bag
  3. Take out two slices
  4. Open the fridge...

Computers are like very fast, very obedient robots — but they need exact instructions. Writing those instructions is called programming or coding.

So What is Python?

Python is a programming language — a special way of writing instructions that computers can understand.

Think of it like this:

  • Humans speak English, Twi, French, Yoruba...
  • Computers speak programming languages
  • Python is one of those languages — and it's one of the friendliest to learn!

Why Python?

Python is used by some of the biggest companies and projects in the world:

Who Uses PythonWhat For
šŸ” GoogleSearch engine and AI research
šŸ“ø InstagramRunning the app for 2 billion users
šŸš€ NASAAnalysing space data
šŸŽ® Game studiosBuilding games and simulations
šŸ¤– AI researchersBuilding tools like ChatGPT

šŸŽ‰ Fun Python Facts

  • Python was created in 1991 by a Dutch programmer named Guido van Rossum
  • It's named after Monty Python — a British comedy group (not the snake! šŸ)
  • Python is famous for being easy to read — it almost looks like English
  • It's one of the most popular programming languages in the world

šŸ’» Part 3: Setting Up Trinket

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-by-Step Setup

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

  • Click "Sign Up" in the top right corner
  • Choose "Sign up with Google" (easiest) or fill in your email
  • Your teacher may send login details in the Zoom chat — check there if so

Step 4: Create a new Python Trinket

  • Once logged in, click the "+" button or "New Trinket"
  • Choose "Python" from the list

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

  • Click the floppy disk icon šŸ’¾ or press Ctrl+S (Windows) / Cmd+S (Mac)
  • Give your Trinket a name
  • Your work is automatically saved to your account!

Note: If you get stuck at any step, type your question in the Zoom chat and your teacher will help you!


šŸ–„ļø Part 4: Your First Python Program!

The Most Famous Program in Coding History

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!


What Did We Just Do?

Let's break it down:

print("Hello, World!")
PartWhat It IsWhat It Does
printA command (function)Tells Python to display something
( )ParenthesesHold 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!


Make It Your Own!

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?


āš ļø Common Mistakes (Don't Worry — Everyone Makes These!)

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 and Print are completely different things.


You Can Print Anything!

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!


šŸŽ® Class Activity: Hello Chain!

Now let's build something together as a class — live on Zoom!

Here's how it works:

  1. Your teacher shares their Trinket screen on Zoom
  2. Type your line in the Zoom chat in this format:
    print("My name is [YOUR NAME] and I love [YOUR THING]! šŸŽ®")
    
  3. Your teacher copies each student's line into the shared Trinket
  4. When everyone is in — the teacher runs it and the whole class appears on screen!

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! 🌟


🌟 What's Coming Next?

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!


šŸ† Today's Achievements

Look how much you've learned in just one lesson:

  • āœ… You understand what Artificial Intelligence is
  • āœ… You know what Python is and why it matters
  • āœ… You have a working Trinket account
  • āœ… You wrote and ran your first Python program
  • āœ… You know what print() does
  • āœ… You know how to avoid common beginner mistakes

"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 šŸ¤–


šŸ“š Homework: My Python Story

Before next class, write an "About Me" program in Trinket.

Requirements:

  1. At least 5 print statements
  2. Include your name, age, and favourite hobby
  3. Add one fun fact about yourself
  4. Use at least one emoji šŸŽ‰

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

Lesson not completed