I have a simple function to read the csv file and extracts the first coloum from it:
import csv
def pass_username():
with open(\'test.csv\', \'r\') as
When you call return, it autimtically exits out of the function, so it doesn't process anything after it reaches the return statement.
You might want to append the result to a list, then return the list.
In your case, you might even want to use a list comprehension, so instead of the for loop, use this:
return [row[0] for row in spamreader]