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!")

浙公网安备 33010602011771号