I don't quite get this "string".find()

Premshree Pillai premshree_python at yahoo.co.in
Thu Nov 11 15:40:34 EST 2004


 --- Grant Edwards <grante at visi.com> wrote: 
> On 2004-11-12, Caleb Hattingh <caleb1 at telkomsa.net>
> wrote:
> 
> > I don't know why the function was set up this way.
>  However, an empty  
> > string can be found in an infinite number of
> places within any other  
> > string.
> 
> How so?  There aren't an infinite number of places
> _in_ a
> finite-length string.

What he probably meant was that you can find a zillion
empty strings between any two characters. That way.

IAC, find() returns the first position in the string
where the character/string is found -- which obviously
is 0.

> 
> -- 
> Grant Edwards                   grante            
> Yow!  Mr and Mrs PED, can I
>                                   at              
> borrow 26.7% of the RAYON
>                                visi.com           
> TEXTILE production of the
>                                                   
> INDONESIAN archipelago?
> -- 
> http://mail.python.org/mailman/listinfo/python-list
>  

=====
-Premshree
[http://www.qiksearch.com/]

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony



More information about the Python-list mailing list