Does anyone know of some examples on the net? I would like to know what it returns when it can't find, and how to specify from start to end, which I guess is going to be 0, -1.
---
From https://www.scaler.com/topics/find-function-in-python/ I got this. But pretty unsure about it.
- Kód: Vybrat vše
>>> x = "Hello World"
>>> x.find('World')
6
>>> x.find('Aloha');
-1