title: I am trying to sum up values in a csv file using python and it is returning Zero, anyone with an idea
body: <pre class="lang-py prettyprint-override"><code>import csv
  
  with open('/Users/a/Documents/student_data.csv', 'r') as data:
      student_csv = csv.reader(data)
      next(data)
      for a in student_csv:
          sum_gpa = 0
          student_num = 0
          sum_gpa += float(a[2])
          student_num += 1
          avr_gpa = sum_gpa / student_num
          print(avr_gpa)
  
  </code></pre>