The idea and the plan
Section 8: The project: the guess-the-number gameLesson 8.1 · ⏱ 6 min
The computer picks a secret number from 1 to 20, and the player guesses. After every guess the program says: bigger or smaller, until the player gets it.
- 🎲
random.randint(1, 20)picks the number. - 🔁
while Truerepeats until the player gets it, thenbreak. - 🧮 A
triesvariable counts the tries.

