#!/usr/bin/env python
#Zhangpengfei


age_of_pengfei = 30
count = 0
while count < 3:
guess_age = int(input("guess_age:"))
if guess_age == age_of_pengfei:
print("yes good you got it...")
break
elif guess_age < age_of_pengfei:
print("NO It smaller..")
else:
print("No It bigger..")
count +=1
if count ==3:
keep_guess = input("try again??? in arbitrarily ... ")
if keep_guess != 'n':
count = 0


posted on 2018-04-19 19:02  DisCover_ry  阅读(752)  评论(0编辑  收藏  举报