I thought I had this one figured out, but check50 disagrees.
The specification suggests that the output needs to be formatted as "Harry James Potter, born 1980 or Luna Lovegood, born 1981." To match this formatting with roster.py, I utilized this code, which may not be the most elegant, but it did give me proper formatting in my terminal
code removed in keeping with course's policy on academic honesty
The result in my terminal was:
~/pset7/houses/ $ python import.py characters.csv
~/pset7/houses/ $ python roster.py Gryffindor
Lavender Brown, born 1979
Colin Creevey, born 1981
Seamus Finnigan, born 1979
Hermione Jean Granger, born 1979
Neville Longbottom, born 1980
Parvati Patil, born 1979
Harry James Potter, born 1980
Dean Thomas, born 1980
Romilda Vane, born 1981
Ginevra Molly Weasley, born 1981
Ronald Bilius Weasley, born 1980
Looks right to me, but apparently not. Check50 states the expected outputs are:
[{'first': 'Harry', 'middle': 'James', 'last': 'Potter', 'house': 'Gryffindor', 'birth': 1980}]
and
[{'first': 'Luna', 'middle': None, 'last': 'Lovegood', 'house': 'Ravenclaw', 'birth': 1981}]
So I should be able to achieve that by just printing rows like so:
code removed in keeping with course's policy on academic honesty
and, indeed, this prints the expected output from check50 in my terminal:
{'first': 'Lavender', 'middle': None, 'last': 'Brown', 'birth': 1979}
{'first': 'Colin', 'middle': None, 'last': 'Creevey', 'birth': 1981}
{'first': 'Seamus', 'middle': None, 'last': 'Finnigan', 'birth': 1979}
{'first': 'Hermione', 'middle': 'Jean', 'last': 'Granger', 'birth': 1979}
{'first': 'Neville', 'middle': None, 'last': 'Longbottom', 'birth': 1980}
{'first': 'Parvati', 'middle': None, 'last': 'Patil', 'birth': 1979}
{'first': 'Harry', 'middle': 'James', 'last': 'Potter', 'birth': 1980}
{'first': 'Dean', 'middle': None, 'last': 'Thomas', 'birth': 1980}
{'first': 'Romilda', 'middle': None, 'last': 'Vane', 'birth': 1981}
{'first': 'Ginevra', 'middle': 'Molly', 'last': 'Weasley', 'birth': 1981}
{'first': 'Ronald', 'middle': 'Bilius', 'last': 'Weasley', 'birth': 1980}
Given that I appear to be getting the right outputs in my terminal, I'm kind of at my wit's end. If anyone has any suggestions, they would be much appreciated. Also, here is my import.py code, in case that is the problem:
code removed in keeping with course's policy on academic honesty
Many thanks for your wisdom and generosity.