day1/exercise/readmarks.py
author Nishanth Amuluru <nishanth@fossee.in>
Tue, 14 Dec 2010 23:15:36 +0530
branchscipyin2010
changeset 456 a27ccfc118fb
parent 64 333092b68926
permissions -rw-r--r--
removed sslc1.txt from circulate since it is not required

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())