Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #this is a password checker
- cu="Elvis"
- cp="Presley"
- def checker(cu,cp,user,pw):
- if user==cu and pw==cp:
- return "access granted"
- else:
- return "error try again" and inputter()
- inputter()
- def inputter():
- user=input("input username: ")
- pw=input("input password: ")
- return user,pw
- inputs=inputter()
- user=inputs[0]
- pw=inputs[1]
- print(checker(cu,cp,user,pw))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement