Advertisement
xFazz

Untitled

Nov 29th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. # This a system that allows you to create a private password system
  2.  
  3. def system_ask():
  4.     global password
  5.     print("What would you like to be your password?")
  6.     password = input()
  7. system_ask()
  8.  
  9. def system_verify():
  10.     print("Is this " + password + " your password?")
  11.     print("y or n")
  12.     passaccept = input()
  13.     if passaccept == 'n':
  14.         system_ask()
  15.     if passaccept == 'y':
  16.         return
  17. system_verify()
  18.  
  19. def system_start():
  20.   print("Please enter your password.")
  21.   userinput = input()
  22.   if userinput == password:
  23.     print("Access gained.")
  24.   if userinput != password:
  25.     print("Access denied.")
  26. system_start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement