day1/exercise/readmarks.py
author Puneeth Chaganti <punchagan@fossee.in>
Sun, 10 Jan 2010 23:09:00 +0530
changeset 353 8999d0a3fc9d
parent 64 333092b68926
permissions -rw-r--r--
Renamed day1 exercise session as session5.

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