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

Premshree Pillai premshree_python at yahoo.co.in
Thu Nov 11 21:29:57 CET 2004


 --- Jaime Wyant <programmer.py at gmail.com> wrote: 
> Will someone explain this to me?
> 
> >>> "test".find("")
> 0
> 
> Why is the empty string found at position 0?

It finds an empty string at the very first position.
> 
> Thanks!
> jw
> -- 
> 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