13 lines
274 B
Python
13 lines
274 B
Python
import csv
|
|
|
|
ages = []
|
|
with open("ages.csv", newline="") as csvfile:
|
|
spamreader = csv.reader(csvfile, delimiter=",", quotechar='"')
|
|
for row in spamreader:
|
|
ages.append(row)
|
|
|
|
total = 0
|
|
for age in ages[4:]:
|
|
total += int(age[1].replace(",", ""))
|
|
print(total)
|