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

Jaime Wyant programmer.py at gmail.com
Thu Nov 11 20:36:41 CET 2004


Will someone explain this to me?

>>> "test".find("")
0

Why is the empty string found at position 0?

Thanks!
jw



More information about the Python-list mailing list