1 f = open('/home/madhu/Desktop/marks.dat')
2
3 for line in f:
4 fields = line.split(';')
5 print "Name: %s, Total Marks: %s" % (fields[2].strip(), fields[8].strip())