Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- entered_username = input("Username:")
- entered_password = input("Password:")
- file = open("accounts.csv", "r")
- for line in file:
- data = line.strip("\n").split(",")
- username = data[0]
- password = data[1]
- if (username == entered_username) and (password == entered_password):
- # Logged in!
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement