day1/exercise/readmarks.py
author Christopher Burns <chris.d.burns@gmail.com>
Wed, 16 Jun 2010 23:19:09 -0700
branchscipy2010
changeset 403 9b8f03e012ba
parent 64 333092b68926
permissions -rw-r--r--
Add notes on day2 material for sessions 7-12

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