summaryrefslogtreecommitdiff
path: root/wk7/lect/favorites.py
blob: 3da307a331275476e71ea90f43248fe229944e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

# DOESN'T WORK BECAUSE WE DON'T HAVE FAVORITES.CSV



import csv

with open("favorites.csv") as file:
    reader = csv.DictReader(file)
    for row in reader:
        favorite = row[1]
        print(row[1])