0Pricing
Coding for Kids · Lesson

Asking for Guesses

Read the players guess.

Time to Guess! ❓

Hi game host! 🎤 The computer has a secret number. Now we need to ask the PLAYER for their guess! ❓

Let's learn how to read a guess and check it!

print('What number am I thinking of? 🤔')

Ask With input() 🗣️

Remember input()? It asks the player and waits! 🗣️ We save their guess in a box.

guess = input('Take a guess: ')
print('You guessed', guess)

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