You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def csvtolist(): #this is the function that pulls emails from csv into a readable format. no extra editing is needed before passing to the next function
results = []
with open('emails.csv', newline='') as inputfile:
for row in csv.reader(inputfile):
if len(row) > 0: # Check if the row has at least one element. eliminates empty line index error