School preview · Teacher-led courses are in preview · Registration is open · Payments and live video are awaiting connection
← Coding Projects

Beginner · Other / specialist pathway · Coding

Events, loops and conditions

Distinguish an event, a repeat instruction and a condition.

Original Kidemy beginner self-study unit · Learn the idea, try the practical activity and review your written answers. Review your project with a guardian or teacher using the criteria below. Teacher-led course approval and booking are separate.

Learn the idea

An event starts a response, such as pressing Start. A loop repeats instructions. A condition chooses an action according to whether a statement is true. The examples are pseudocode: readable plans, not a particular programming language.

Worked example

When Start is pressed: repeat 3 times, show “Hello”. If the answer is correct, show “Try a new question”; otherwise, show “Review the example”.

  1. Identify what starts the program.
  2. Count how many times the loop body runs.
  3. Check both the true and false branches of a condition.

Your written practice

Show your working on paper and enter your answer here. If it does not match, compare the model and try again.

Show model answer and explanation

Start

Pressing Start is the event.

Show model answer and explanation

3

The loop body runs three times.

Show model answer and explanation

condition

A condition selects a branch.

Write in your own words. A guardian or teacher should review this response.

Show model answer and explanation

When Start is pressed: repeat 2 times: show Hello.

Check one start event and two repetitions.

Write in your own words. A guardian or teacher should review this response.

Show model answer and explanation

If the door is open, enter with permission; otherwise, wait.

Accept two clear branches with safe, sensible actions.

A paper decision game

Make a start card, a repeat card and a yes/no decision with two labelled outcomes.

Review with a guardian or teacher

Keep your work on paper or in a local file. This page does not upload it or automatically grade the project.

Teacher-led lessons, schedules and prices for this outline are upcoming. You can use any starter practice above now without booking.

Your next step

Solo practice works without an account. Sign in to save a practice record to your learner profile.

Keep practising

Exact lesson links and related activities are labelled separately. Return-to-course links retain your selected learning path.

Browse all games and books →