Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def login():
- with open("student_records.csv", "r") as file:
- read=csv.reader(file)
- invalid_login = True
- while invalid_login == True:
- username = input ('What is your username')
- password = input ('What is your password')
- for each in read:
- print (each)
- if username in each and password in each:
- print ('record was found')
- invalid_login = False
- test()
- else:
- break
- print('Incorrect username or password')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement