Advertisement
Guest User

Untitled

a guest
Mar 1st, 2018
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. print ('The Database is password protected') # Says the Data base is password protected
  2. print ('please enter password') #say please enter password
  3.  
  4. password = ('swordfish')
  5. swordfish = 3
  6.  
  7. password = input()
  8. if password == 'swordfish':
  9.  
  10. print ('Access granted.')
  11.  
  12. else:
  13.  
  14. if password != ('swordfish'):
  15.  
  16.  
  17. print ('wrong password.')
  18.  
  19. print ('two attempts remain')
  20.  
  21. else:
  22. password = input()
  23.  
  24. if password == 'swordfish':
  25. print ('Access granted.')
  26. else:
  27. password = input()
  28. if password == 'swordfish':
  29. print ('Access granted.')
  30. else:
  31. print ('wrong password.')
  32. print ('one attempt remain')
  33.  
  34. password = input()
  35. if password == 'swordfish':
  36.  
  37. if password != ('swordfish'):
  38.  
  39. print ('You have been blocked from the database')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement