With Tek
What are events in coding
An event in coding is a when that starts code: when the button is pressed, ring the bell. The code waits, and nothing happens until the event comes. In this course your kid finds events at home, writes event cards with a list of steps under each one, gives a robot two events with two different jobs, and then plays the program with a grown-up or a brother or sister as the robot. Tek hosts four short films for kids 6 to 13, and the whole course ends at home, with paper cards and no screen. Your kid ends with a program of event cards that steers a person-robot to a pillow. Plan about 3 minutes of films and 30–45 minutes of play. On Kubrio, all four films and the quiz are free, with no account.
All 4 lessons and the quiz are free on this page. Your kid doesn't need an account. See every lesson
Liked this lesson?
There's a whole world of this.
In Kubrio Worlds your kid explores places, asks the people who made them anything, and makes their own things. You set the screen time.
3 days free, then $49 $19 a month per kid.
▶ 1:45 tourWhat your kid makes
Your kid ends with a program of event cards, each starting with When: clap to take a step, whistle to turn, stomp to freeze, and a timer card for a happy dance. Your kid plays the program at home and steers a grown-up or a brother or sister to a pillow.
- Ages
- 6 to 13
- Time
- 4 films, about 3 minutes, then 30–45 minutes of play
- You need
- Paper or index cards, a pencil or markers, a pillow for the finish line, a grown-up or a brother or sister to play the robot, a kitchen timer (optional)
- Host
- Tek
The 4 lessons
Lesson 1. What's an event?
An event is a when: when something happens, it starts some code. The code waits until the event comes, then runs, like a doorbell or a button on a game controller.
- Find three events at home, like when the door opens
- Write each one on paper
- Start each one with When
Where: Paper
Lesson 2. One event, many steps
One event can start a whole list of steps. The steps run one after another, top to bottom, so the order matters.
- Write an event card that says When I clap
- Write three steps for a robot under it
- Check the order: the top step runs first
Where: Paper
Lesson 3. Two events, two jobs
A robot can listen for many events at once, and each event starts its own code, like two buttons on a game controller.
- Make a card: When I clap
- Make a card: When I whistle
- Give each card a different job
Where: Paper
Lesson 4. Be the robot
A grown-up, or a brother or sister, plays the robot and moves only when an event happens. No clap, no step.
- Lay out cards for clap, whistle, and stomp
- Steer your robot all the way to a pillow
- Add a card: when the timer ends, do a happy dance
Where: At home
Take the quiz
Tek asks 3 questions about the films. Get 2 right and you finish the course.
Transcript
Lesson 1: What's an event?
Ding dong! Someone pressed the doorbell, so the bell rang. In coding, that's called an event!
An event is a when. When something happens, it starts some code.
Coders write it like this. When the button is pressed: ring the bell.
The code just waits. Nothing happens until the event comes. Then it runs!
Events are everywhere. When you press a button on a game controller, your hero jumps. When the timer ends, the alarm rings.
Your turn. Find three events at home, like when the door opens, or when the phone rings. Write each one on paper, starting with When.
Lesson 2: One event, many steps
One event can start more than one step. It can start a whole list!
Here's a robot program. When I clap: light up. Move forward two steps. Beep.
Clap! The robot lights up, moves, and beeps. Every step runs, one after another, top to bottom.
The order matters. Put Beep first, and the robot beeps before it moves.
A doorbell works the same way. When it's pressed: ring the bell, then turn on the light.
Your turn. Write an event card that says, When I clap. Under it, write three steps for a robot to do.
Lesson 3: Two events, two jobs
A robot can listen for lots of events at the same time.
When I clap: move forward. When I whistle: turn around.
Each event starts its own code. Clap, it moves. Whistle, it turns. Clap again, it moves again!
Game controllers work like this too. When this button is pressed, jump. When that button is pressed, run.
Events can be all kinds of things. When the robot is touched. When the timer ends. When a button is pressed.
Your turn. Make two event cards: When I clap, and When I whistle. Give each one a different job.
Lesson 4: Be the robot
Now let's play it for real. A grown-up, or a brother or sister, is your robot!
Lay out your event cards. When I clap: take one step. When I whistle: turn. When I stomp: freeze.
The robot waits. It only moves when an event happens. No clap, no step!
Clap, clap, whistle, clap! Can you steer your robot all the way to a pillow?
Your turn. Make your cards, pick your robot, and play. Add one more card: When the timer ends, do a happy dance!
You made a program with events. When this happens, your robot knows just what to do!
Free guides to practise with
Questions parents ask
What is an event in coding, in kid terms?
A when that starts code. Pressing a doorbell is the event, and the bell ringing is the code it starts. In a game, pressing a button is the event, and the hero jumping is the code. The code waits until its event happens.
What if my kid can't whistle?
Any sound or move works as an event. The films use a clap, a whistle, and a stomp as examples, so swap the whistle for a snap, a hum, or a hop.
Does my kid need a robot or a screen?
No. The films play on this page, and the program is paper cards played at home, with a grown-up or a brother or sister as the robot. The course ends at home, with no screen. Clear a little floor space so the person-robot can step and turn safely.
