Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This a system that allows you to create a private password system
- def system_ask():
- global password
- print("What would you like to be your password?")
- password = input()
- system_ask()
- def system_verify():
- print("Is this " + password + " your password?")
- print("y or n")
- passaccept = input()
- if passaccept == 'n':
- system_ask()
- if passaccept == 'y':
- return
- system_verify()
- def system_start():
- print("Please enter your password.")
- userinput = input()
- if userinput == password:
- print("Access gained.")
- if userinput != password:
- print("Access denied.")
- system_start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement