Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ('The Database is password protected') # Says the Data base is password protected
- print ('please enter password') #say please enter password
- password = ('swordfish')
- swordfish = 3
- password = input()
- if password == 'swordfish':
- print ('Access granted.')
- else:
- if password != ('swordfish'):
- print ('wrong password.')
- print ('two attempts remain')
- else:
- password = input()
- if password == 'swordfish':
- print ('Access granted.')
- else:
- password = input()
- if password == 'swordfish':
- print ('Access granted.')
- else:
- print ('wrong password.')
- print ('one attempt remain')
- password = input()
- if password == 'swordfish':
- if password != ('swordfish'):
- print ('You have been blocked from the database')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement