Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int chances = 0
- while True:
- ques = raw_input("Do you wish to continue as the default user: ")
- if ques == 'y':
- default_password = "12345"
- password = raw_input("Enter password: ")
- if chances == 2:
- print "Too many attempts."
- if password == default_password:
- break
- else:
- print("Your password was wrong.")
- chances+=1
- else:
- pass
- // Create new user profile
- print "Program running"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement