Problem with coding

Can someone look at this code and let me know why the longest_name group I created is empty.
Thanks

image

Kindly correct your 4th line of the code.

You are reading the open_file into a variable called reader. Then you are using list on open_file and not on reader.

Correct code:

reader = csv.reader(open_file)
all_rows = list(reader)