0Pricing
Coding for Kids · Lesson

Higher or Lower

Give hints.

Give Helpful Hints! 💡

Hi helper! 💡 A great guessing game gives HINTS! If the guess is wrong, we tell the player: go HIGHER or go LOWER! 📈📉

Let's make our game smart and helpful!

print('Too high? Too low? I will help you! 💡')

Greater Than Sign 📈

The symbol > means "greater than" (bigger). 📈 So guess > secret asks: is the guess bigger than the secret?

guess = 8
secret = 5
if guess > secret:
    print('Your guess is too HIGH! Go lower! 📉')

All lessons in this course

  1. Making a Secret Number
  2. Asking for Guesses
  3. Higher or Lower
  4. You Win!
← Back to Coding for Kids