Explore ActivitiesDigital Literacy
🎮
Digital Literacy

Can you finish guess the number game in about 30 min?

Guess the Number Game

You will students learn basic Python syntax and logic while creating an interactive game.

Duration30 min
Age GroupAges 12–13
DifficultyBeginner
SubjectDigital Literacy
Activity Preview

See how this hands-on lesson works

Sign in to start the full activity flow, save this lesson, print a learner version, and track XP. The preview below is public so parents and educators can evaluate the activity before joining.

Concept

What this lesson teaches

Students learn basic Python syntax and logic while creating an interactive game. This activity fosters problem-solving skills, helping children understand how to structure programs through a fun challenge.

Materials

What you need

    Steps

    How the activity runs

      Why It Works

      The learning connection

      Engaging with coding through a game allows students to visualize concepts like loops and conditionals. By employing Bruner's CPA approach, they move from concrete number examples to abstract coding logic, reinforcing their understanding through active creation.

      Extend the Lesson

      Try it with your learner

      1. Open your Python IDE (like Thonny or IDLE). 2. Write a function to generate a random number between 1 and 100. 3. Ask the player to guess the number and input their guess. 4. Provide feedback: tell them if their guess is too high or too low. 5. Repeat until they guess correctly and display a success message. 6. Share your code with a family member and see if they can guess the number!

      Digital Literacy30 minAges 12–13Grade 7Sign in to save this activity
      Keep Learning

      Related activities