Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wrong_passwords = []
- while True:
- user_password = raw_input("enter your password: ")
- # if correct password then leave loop
- if user_password == "j":
- break
- wrong_passwords.append(user_password)
- for number, password in enumerate(wrong_passwords, 1):
- print "wrong password nmr", number, ":", password
- print "You are logged in"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement