I decided to learn Python after my other thread about which code I should learn, but I am having some difficulty. I need to edit this code to make it keep track of how many times the User got the password wrong. If it is 3, it needs to display "that must have been complicated." This is probably very simple, but I just don't get it.I tried entering some stufff, but I cant get it. Here is the code I need to edit:
Code:
# Waits until a password has been entered. Use control-C to break out with out
# the password
#Note that this must not be the password so that the
# while loop runs at least once.
password = "foobar"
#note that != means not equal
while password != "unicorn":
password = raw_input("Password:")
print "Welcome in"