Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- passwordFile = open('SecretPasswordFile.txt')
- secretPassword = passwordFile.read()
- print('Enter your password.')
- typedPassword = input()
- if typedPassword == secretPassword:
- print('Access granted')
- if typedPassword == '12345':
- print('That password is one that an idiot puts on their luggage.')
- else:
- print('Access denied')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement