age =30
conut = 0
for i in range(10):
#print("conut is ",conut)
if conut < 3:
guess_unm= int(input("Enter age:"))
if guess_unm == age:
print("Bingo...")
break
elif guess_unm >age:
print("think smaller..")
else:
print ("think big...")
else:
continue_config= input("Do you still have to guess? Please enter y:")
if continue_config == "y":
conut = 0
continue
else:
print ("Bye bye")
break
conut += 1
浙公网安备 33010602011771号