猜年龄,限3次

# -*— coding:encoding utf-8 -*-
# author sue
L= 18
count=0
while count<3:
old = int(input("input old:"))
count += 1
if old==L:
print("clevel")
break
elif count<3 and old<L:
print("bigger")


elif count<3 and old>L:
print("smaller")
else:
print("ben,")
posted @ 2021-07-31 17:13  快乐之光  阅读(31)  评论(0)    收藏  举报