How can I find the first occurrence of a sub-string in a python string? November 12, 2022 by Tarik find() >>> s = "the dude is a cool dude" >>> s.find('dude') 4