Everything is stored in objects in a list trackList. Track is the object so track.sales returns the sales of particular track.
This is what I have so far:
Code:
def totalSales(trackList):
for track in trackList:
total = sum(track.sales)