# you have to guess the number 88 # if you do not guess it in 3 times then a comment will be shown number = 88 guess = 0 count = 0 while number != 0: number = input("Enter a number: ") if number != 0: count = count + 1 if count == 3: print "you guessed it wrong 3 times. try again" if number == 88: print "congratulations you have guessed it. press 0"