I want to search through a string and get the first index of any sub-string in a given set of sub-strings.
I tried 'word'.find('g' or 'r')
and expected this to return the index: 2, but or
does not work obviously.
How can I achieve this concisely?