1. Rows of data
Try firstWhy does int(song["year"]) need int()?
Check your answer
Every value read from a CSV is text; int() turns "2013" into the number 2013 so it can be compared or added.
csv.DictReaderreads the file's first line as the keys, and turns every other line into a dictionary.songs[0]is the first row;songs[0]["title"]is one value in it.- Every value is text, even the year.
int()makes it a number before you compare or add.