problem with string.lower function

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Tue Apr 29 02:42:55 CEST 2003


> From: Don Low [mailto:mt at open2web.com]
> 
> Thanks, you're right. The line I added used spaces for 
> indentation while
> the other lines used tabs. 
> 
> >>         for eachLine in allLines:
> >>         test = string.lower(eachLine) // change is here
> >>         if string.find(test, word) > -1:
> >>                 count = count + 1
> >>                 print eachLine,

For this reason you should always invoke python as

    python -tt script.py

while developing.

Tim Delaney





More information about the Python-list mailing list