I'm attempting to load a CSV which looks like the following and create a tuple out of it, so that I can later access account1, account2, etc in code:
user,password
johndoe@gmail.com,password
janesmith@gmail.com,password2
So far, all I've been able to do is import the CSV.
import csv
# our csv file name
filename = "resources/accounts.csv"
with open(filename) as infile:
reader = csv.reader(infile)
I'm looking for something like so: {("johndoe@gmail.com", "password"), ("janesmith@gmail.com", "password")}
Could someone advise on what to do from here?