Advertisement
Guest User

Untitled

a guest
Mar 7th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. def login():
  2. print("Logging in...")
  3. time.sleep(1)
  4. file = open('accounts.txt', 'r')
  5. while True:
  6. loginUsername = input("Enter your username: ")
  7. if loginUsername in open('accounts.txt').read():
  8. loginPassword = input("Enter your password: ")
  9. if loginPassword in open('accounts.txt').read():
  10. print(" ")
  11. time.sleep(1)
  12. loggedinmenu()
  13. break
  14. else:
  15. print("That wasn't a correct username.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement