The Python Oracle

How can I find the first occurrence of a sub-string in a python string?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 Question
00:28 Accepted answer (Score 293)
00:40 Answer 2 (Score 51)
01:52 Answer 3 (Score 3)
02:16 Answer 4 (Score 0)
03:01 Thank you

--

Full question
https://stackoverflow.com/questions/3221...

Accepted answer links:
[find()]: http://docs.python.org/library/stdtypes....

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #string

#avk47