summaryrefslogtreecommitdiff
path: root/day1/exercise/readmarks.py
blob: 6a90fde7a42ed99b2ebdfc321518f23b0f329b80 (plain)
1
2
3
4
5
f = open('/home/madhu/Desktop/marks.dat')

for line in f:
    fields = line.split(';')
    print "Name: %s, Total Marks: %s" % (fields[2].strip(), fields[8].strip())