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
posted on 2016-10-21 17:02  痒乐多  阅读(144)  评论(0)    收藏  举报