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
- Making a Secret Number
- Asking for Guesses
- Higher or Lower
- You Win!