File: class/Workbook/Exercises/Lab4/commands2.py

import string
from scanfile2 import scanner

def processLine(line, count):
    print count, ':', string.upper(line)

scanner("data.txt", processLine)    # start scanner



[Home page] Books Code Blog Python Author Train Find ©M.Lutz