Guest User

Untitled

a guest
Jan 16th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import csv
  2.  
  3. inputUser=input("Enter your username")
  4. with open('Usernames.csv', 'r+') as savedUsers:
  5. if inputUser in savedUsers:
  6. with open('Passwords.csv', 'r+') as savedPass:
  7. inputPass=input("Enter your password")
  8. if inputPass in savedPass:
  9. print("Welcome back,", inputUser)
  10. else:
  11. print("Incorrect Password")
  12. raise SystemExit()
  13.  
  14. if inputUser in savedUsers.readlines() #change this condition
  15.  
  16. if inputPass in savedPass.readlines():
Add Comment
Please, Sign In to add comment