- Katılım
- 17 Haziran 2022
- Mesajlar
- 6
- Reaksiyon puanı
- 0
- Puanları
- 1
- Yaş
- 27
I (beginner) am trying to find some examples but no luck.
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 Scaler , I got this but still unsure about it. Share your insights.
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 Scaler , I got this but still unsure about it. Share your insights.
Python:
>>> x = "Hello World"
>>> x.find('World')
6
>>> x.find('Aloha');
-1
Son düzenleme: