I'm looking for examples but am having no luck.
Is anyone aware of any examples on the internet? I'd like to know what it returns when it can't find something, and how to specify from start to end, which I assume will be 0, -1.
Could someone please assist me? But I'm not sure about it.
Is anyone aware of any examples on the internet? I'd like to know what it returns when it can't find something, and how to specify from start to end, which I assume will be 0, -1.
Python:
>>> x = "Hello World"
>>> x.find('World')
6
>>> x.find('Aloha');
-1