Lesson 25 · Guess the number

Intermediate programming · 5 min · See the playlist on YouTube ↗

✓ You already watched this lesson

You already knew how to compare; what changes today is what you compare against. The program stores a number you can't see, and it responds based on what you risk.

🎯 The challenge of this lesson

Change the seven to another secret number; then make the program also reply when you get it wrong, writing "You failed" in the clear area instead of leaving it blank.

Practise in the app

Read the written page for this lesson →

Stuck on this lesson?

Write your question and another student — or the teacher — will answer. Your email is never published: it is only used to let you know when someone replies.

Before being published, every message goes through an automatic filter that rejects bad language and any attempt to intimidate another person.

  • Loading the questions…