secret_number = 9guess_count = 0guess_limit = 3 while (guess_count < guess_limit): guess = int(input('Guess ?')) guess_count +=1 if (guess == secret_number): print ("You won !") breakelse: print ("You failed !")