Can anyone explain what each line of the code does and how it works? I have no experience with python so I am not sure how the arrays and such work. I found this code while looking through the forums.
f = open("exams","r")
l = f.readline()
while l:
l = l.split(" ")
values = l[1:]
sum = 0.0
for v in values:
sum += float(v)
print "%s %f" % (l[0] , sum / len(values))
l = f.readline()
f.close()
Thank you for any help.