running python3 testing.py...
sending input 22...
sending input 18...
checking for output "Too large!"...
my code couldn't pass the guessing game test, the test is sending 22 as a number to be guessed and 18 is the first guess number,and test thinks 18 is Too large or am I mistaken? anybody faced same problem?
while True:
try:
level = int(input("Level: "))
break
except ValueError:
pass
while True:
try:
guess = int(input("Guess: "))
except ValueError:
pass
else:
if guess == level:
print("Just right!")
break
elif guess > level:
print("Too large!")
else:
print("Too small!")