for循环练习

# Author:liuzhongchang
LIU_age = 27

for i in  range (3):
    guess_age = int(input("guess age:"))
    if guess_age==LIU_age:
     print("yes,you got it.")
     break
    elif guess_age>LIU_age:
     print("think smaller...")
    else:
     print("think bigger...")
else:
    print("you have tried too many times..fuck off..")
# Author:liuzhongchang
for i in range (0,10,2):
    print("loop",i)

 

posted @ 2017-11-13 15:00  L大胖  阅读(63)  评论(0编辑  收藏  举报