Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. int chances = 0
  2. while True:
  3. ques = raw_input("Do you wish to continue as the default user: ")
  4. if ques == 'y':
  5. default_password = "12345"
  6. password = raw_input("Enter password: ")
  7. if chances == 2:
  8. print "Too many attempts."
  9. if password == default_password:
  10. break
  11. else:
  12. print("Your password was wrong.")
  13. chances+=1
  14. else:
  15. pass
  16. // Create new user profile
  17.  
  18.  
  19. print "Program running"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement