EddieJ already seems to have solved your problem. Using int() [or float() if the data has decimal fractions] is what I'd have suggested, too. Think about awarding best answer based on that...first with the correct fix.
I gave him a thumbs up, and I'd give you a gold star for indenting your Python in the question. Sadly, there's no voting on questions, so what I'll offer instead is a peek into the future, assuming you continue to develop your Python skills.
You have a text file with each line being a "record" and each line has a list of fields separated by commas. That's a common enough format to have a name: "comma-separated value" or "CSV" file. When you see a filetype suffix of ".csv", that's probably a CSV file. Spreadsheet programs (like Excel and Libre Office Calc will export spreadsheets in this format, as will many database programs.
Python has a module you can import to handle this format, and it recognizes a few different styles of quoting fields (needed if a field has a comma included). A csv.reader object acts as a sequence of lists, one for each record, that you can use in a for loop or in list comprehension and generator expressions.
Your program could be simply:
import csv
girls1910 = 0
the_file = open("the_file.txt) )
for line in csv.reader(the_file):
.... if len(line) >= 5 and line[2] == '1910': # notice string comparison
.... .... girls1910 += int(line[4]) # or float(line[4]) if you need fractions
the_file.close()
The "acts as a sequence" part lets you shorten that up quite a bit using the built-in sum() function and a generator expression:
import csv
with open("the_file.txt") as the_file:
.... girls1910 = sum(int(line[4]) for line in csv.reader(the_file) if len(line) > 4 and line[2] == '1910')
The "with" statement ensures that the file gets closed, no matter what, as soon as the indented block is done. I don't expect you to get all of what's in that third line, but that's a sum() call on a generator expression. It takes each list returned by the csv.reader() object, filters out only those that have at least 5 columns and '1910' in the third column, then converts the fifth column to integer and passes just those int values to sum(), and sum() adds all of them up.