LearnPy Hub
← Loops problems
Medium

Guessing Game

Read the secret number, then guesses one per line. For each guess print Too low, Too high or Correct in N tries, and stop reading after the correct guess.

Input

Secret, then guesses.

Output

Lines.

Sample 1

Input
42
50
25
42
Output
Too high
Too low
Correct in 3 tries

Sample 2

Input
7
7
Output
Correct in 1 tries
solution.py
Output appears here
Guessing Game · Python practice problem · LearnPy Hub