Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = 1
- while True:
- user_password = raw_input("enter your password: ")
- # if correct password then leave loop
- if user_password == "j":
- break
- print "wrong password nmr", number, ":", user_password
- number += 1
- if number > 3:
- print "Sorry, you enter 3 wrong passwords. Goodbye"
- exit()
- print "You are logged in"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement