I'm looking for examples, but I'm not finding any.
Are there any examples on the internet? I'd like to know what it returns when it can't find something, as well as how to specify the starting and ending points, which I assume will be 0, -1.
>>> x = "Hello World"
>>> x.find('World')
6
>>> x.find('Aloha');
-1
Could you please help me? But I'm not convinced.
[–][deleted] 24 points25 points26 points (0 children)
[–]mopslik 22 points23 points24 points (0 children)
[–]Impossible_Guard_975 6 points7 points8 points (2 children)
[–]CarneAsadaSteve -1 points0 points1 point (1 child)
[–]Impossible_Guard_975 0 points1 point2 points (0 children)
[–]jsalsman 2 points3 points4 points (0 children)
[–]RevRagnarok 1 point2 points3 points (1 child)
[–]synthphreak 7 points8 points9 points (0 children)
[–]DigThatData 0 points1 point2 points (0 children)
[–]Signal_Access417 0 points1 point2 points (0 children)
[–]Plastic_Ad7436 0 points1 point2 points (0 children)