Advertisement
Guest User

ds pass checker.py

a guest
Nov 16th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #this is a password checker
  2. cu="Elvis"
  3. cp="Presley"
  4.  
  5. def checker(cu,cp,user,pw):
  6.     if user==cu and pw==cp:
  7.         return "access granted"
  8.     else:
  9.         return "error try again" and inputter()
  10.         inputter()
  11.  
  12. def inputter():
  13.     user=input("input username: ")
  14.     pw=input("input password: ")
  15.     return user,pw
  16.  
  17. inputs=inputter()
  18. user=inputs[0]
  19. pw=inputs[1]
  20.  
  21. print(checker(cu,cp,user,pw))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement