The sum of numbers in a line from a file

kjakupak at gmail.com kjakupak at gmail.com
Thu Feb 20 13:37:43 EST 2014


scores = stu_scores()
for line in scores:
    fields = line.split()
    name = fields[0]
print (fields)

Error comes up saying "IndexError: list index out of range."



More information about the Python-list mailing list