Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. def login():
  2. username_=input("Please enter your username"+'\n')
  3. password_=input("Please enter your password"+'\n')
  4. read_=open("test.txt").readlines()
  5. print(read_)
  6. for line in read_:
  7. token=line.strip().split('|')
  8. print(token)
  9. username=token[0]
  10. password=token[1]
  11. if username_==username and password_== password:
  12. print("You succcesfully logged in",username)
  13. return
  14. print("Error")
  15. login()
  16. login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement