class Student:
    sports = []

def __init__(self, row):
    self.lname, self.fname, self.ID, self.sport = row
self.sports.append(self.sport)

def get(self):
    return self.lname, self.fname, self.ID, self.sport
reader = csv.reader(open('copy-john.csv'), delimiter=',', quotechar='"')
print('%-14s|%-10s|%-5s|%-11s' % tuple(next(reader)))
print('-' * 45)
students = list(map(Student, reader))
for student in students:
    print('%-14s|%-10s|%-5s|%3s' % student.get())
for s in set(Student.sports):
    print(s, Student.sports.count(s))
allsports = ['Basketball', 'Football', 'Other', 'Baseball', 'Handball',
    'Soccer', 'Volleyball', 'I do not like sport']
for s in (set(allsports) - set(Student.sports)):
    pass
python csv в словарь