#Author: Hans W. Guesgen #Date: 25/09/06 #Use variables to keep track of the loop and the user input count = 1 password = "" #Keep doing the loop until the user has guessed the password while (password != "kiwi"): #Ask the user for a password password = raw_input("Attempt " + str(count) + " - Enter the password: ") count = count + 1 print "Correct"