[Tutor] Help me Be Pythonic [fileinput / find() and bounda

Sean 'Shaleh' Perry shalehperry@attbi.com
Tue, 28 May 2002 22:54:51 -0700 (PDT)


> 
> The reason for this is because find()  will return -1 if it can't find the
> string we're looking for.  For example, if we play around with find() in
> the interactive interpreter:
> 

so why not do:


if find() != -1?