for chance in range(3):
print("Try #"+str(chance+1))
guess = int(input("Please enter your number "))
answer = 2
if guess == answer:
print("correct!")
else:
print("try again")
if someone types a string of letters instead of numbers, how do I deal with that so that the loop isn't broken with an error