title: Python: How can I sum integers in a CSV file, while only summing the integers of a certain variable?
body: <p>I'm trying to program some data in a csvfile by using Python. I have a list of countries and results of the Eurovision Songcontest, and it looks like this: </p>
  
  <pre><code>Country,Points,Year
  Belgium;181;2016
  Netherlands;153;2016
  Australia;511;2016
  Belgium;217;2015
  Australia;196;2015
  </code></pre>
  
  <p>Et cetera. </p>
  
  <p>In summary, I want to sum the total of points that any country received throughout the years, so the output should look something like this:
  'Belgium: 398','Netherlands: 153','Australia: 707' and so on. </p>
  
  <p>This is what my code looks like:</p>
  
  <pre><code>import csv
  with open('euro20042016.csv', 'r') as csvfile:
      pointsallyears = []
      countriesallyears = []
      readFILE = csv.reader(csvfile, delimiter=';')
      for row in readFILE:
          countriesallyears.append(row[0])
          pointsallyears.append(row[1])
  csvfile.close()
  
  results = []
  for result in pointsallyears:
      result = int(result)
      results.append(result)
  
  scorebord = zip(countriesallyears,results)
  </code></pre>
  
  <p>So I already made sure that the results / points are actual integers and I filtered out the third row (Year), but I have no idea how to proceed from here. Thanks a lot in advance! </p>