I wrote the following code:
>>> a="12345" >>> b="" >>> a.find(b) 0
I don't understand why the function returns 0 in stead of -1, b is the empty string and a is not empty, does this mean that the empty string is found in every string?
How do I define a string that is 'empty' and yet when looking for it in a string that isn't empty (like a), it gives me -1 and not 0?
Thanks for any kind of help!