problem with string.lower function
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Mon Apr 28 20:42:55 EDT 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