s = "the dude is a cool dude" s.find('dude') # returns 4 - the first index of the first match in the string