I'm a newbie and i need to know how to modify a password guessing program to keep track of how many times the user has entered the password wrong. If it has been entered more than 3 times then it should print " This seems to be complicated" and the program should be ended. The password guessing program is
password="abcd"
while password != "password"
password = raw_input("Password:")
print "Welcome in"
How should i modify this program to get one as i mentioned earlier? Could anyone guide me? Thank you.