#!/usr/bin/env python#coding:utf8#author:felix Zhengage_of_felix = 32count = 0while count < 3:guess_age = Int (input ("Guess Age:")) if guess_age = = Age_of_felix:print ("Yes,you got It .") Break Elif Guess_age < Age_of_felix:print ("Think smaller!") Else:print ("Think bigger!") Count +=1else:print ("You have tried too many times ... shutdown") #!/usr/bin/env Python#coding:utf8#author:felix Zhengag E_of_felix = 32count = 0while Count < 3:guess_age = Int (input ("Guess Age:")) if Guess_age = = Age_of_felix: Print ("Yes,you got it.") Break Elif Guess_age < Age_of_felix:print ("Think smaller!") Else:print ("Think bigger!") Count +=1# Selective execution if count = = 3:countine_comfirm = Input ("Do you want to keep guessing ...?") If countine_comfirm! = ' n ': Count = 0#else:# print ("You have tried too many times ... fuck off")
04.while Loop statement