<human>:  string find
<bot>: Here is some code to find the index of sub string 'g' in string `str`

str.find('g')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.