Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- inputUser=input("Enter your username")
- with open('Usernames.csv', 'r+') as savedUsers:
- if inputUser in savedUsers:
- with open('Passwords.csv', 'r+') as savedPass:
- inputPass=input("Enter your password")
- if inputPass in savedPass:
- print("Welcome back,", inputUser)
- else:
- print("Incorrect Password")
- raise SystemExit()
- if inputUser in savedUsers.readlines() #change this condition
- if inputPass in savedPass.readlines():
Add Comment
Please, Sign In to add comment