Reputation: 1
I have a .txt in which stores the username and password.
Jane:1234
I have gotten to the point of reading from the file and storing them. I then need to get the users input to enter a username and password and authenticate if it is correct.
Upvotes: 0
Views: 468
Reputation: 21
you can use .replace and .split
account_info = "username:password"
account_info_array = account_info.replace(":", " ").split()
['username', 'password']
Upvotes: 1