Well, I am a beginner and my variable (guess
) input doesn't work with the if
statement:
When I put on the input numbers from 0
to 9
, I want it prints out Right number!
, else it print out the other message:
guess = input("Choose a number between 0-9: ")
if guess <=9 and guess >=0:
print("Right number!")
else:
print("The number you entered is out of range try again!")