Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- passwordFile = open("SecretPasswordFile.txt")
- secretPassword = passwordFile.read()
- #print(secretPassword)
- print("Enter your password.")
- typedPassword = input()
- if typedPassword == secretPassword:
- print("Access granted")
- if typedPassword == "12345":
- print('Idiot password')
- else:
- print('Access denied')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement