J
Jaime Wyant
Will someone explain this to me?
0
Why is the empty string found at position 0?
Thanks!
jw
0
Why is the empty string found at position 0?
Thanks!
jw
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.
Caleb Hattingh said: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.
Also, if you want to check whether a string is empty, I do
False
.... print 'not empty'False
Jaime said:Will someone explain this to me?
0
Why is the empty string found at position 0?
Err...discrete math was never my strong point Still,
matching 'emptiness' to non-emptiness is what conceptually
raises the problem for me. I am not convinced that because
there are only 'so many places' to fit, one is restricted to a
finite number of possibilities - simply because what we are
trying fit is 'nothing'.
Jaime said:Will someone explain this to me?
0
Why is the empty string found at position 0?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.