标签:big confirm EDA bre ant guess else oldboy +=
age_oldboy =56
count = 0
while count<3 :
guess_age = int(input("guess age:"))
if age_oldboy==guess_age:
print("yes,you got it!")
break
elif guess_age >age_oldboy:
print("think smaller")
else :
print("think bigger")
count +=1
if count ==3:
countine_confirm = input("do you want to keep guessing..?")
if countine_confirm != ‘n‘:
count = 0
else:
print("太遗憾了,希望下次再来!")
标签:big confirm EDA bre ant guess else oldboy +=
原文地址:https://www.cnblogs.com/smile-donggua/p/8981551.html