Advertisement
sib201814040

pass man

Jun 7th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. accounts=['shafat@gmail.com','arnob@gmail.com','uccash@gmail.com']
  2. passwords=['123456','987654','ami neshakhor']
  3.  
  4. def check_account(name):
  5. i=0
  6. while(i<len(accounts)):
  7. if(name==accounts[i]):
  8. return i
  9. break
  10. i=i+1
  11. def check_pass(password):
  12. a=check_account(name)
  13. if(passwords[a]==password):
  14. print('Log in Successfull.')
  15. else:
  16. print('Incorrect password.')
  17.  
  18. print('ID: ')
  19. name=input()
  20. name=name.lower()
  21.  
  22. if(name in accounts):
  23. print('Enter password: ')
  24. password=input()
  25. check_pass(password)
  26. else:
  27. print('Invalid ID.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement