Python-Day1-GuessAge-For

age_of_oldboy = 56

for i in range(3):
age = int(input("Input the age: "))

if age==age_of_oldboy:
print("You got it.")
break
elif age > age_of_oldboy:
print("Think smaller...")
else:
print("Think bigger.")
count +=1
else:
print("You have tried too many times!")
posted @ 2020-05-01 18:59  Carol7258  阅读(103)  评论(0)    收藏  举报