Exerpad
Exercise 7 · Chapter: While LoopsRequired+50 XP

Guess the Number

The secret number is 7. Keep asking the user to guess until they get it right, then print how many guesses it took.

Example:

Input:

3
5
7

Output:

Correct! Guesses: 3
Need a hint?
3 available · costs 5 XP each
python

Output
Run your code to see the output here.