for chance in range(3): print("Try #"+str(chance+1)) guess = int(input("Please enter your number ")) answer = 2 if guess == answer: