Practice · 3 of 3
Guessing Steps (deterministic)
CHALLENGE
Difficulty: beginner+25 XP
secret = 7 is given, and guesses = [4, 9, 7] simulates the player. Walk the guesses in order with a for loop and print each guess, stopping (break) the moment the secret is found. The winning guess must be printed too.
Press Submit to check your solution.
Back to lesson: Practice: while & Game Logic