func_code: def index(str, letter):
      i = 0
      while i < len(str):
          index = letter.index('str')
          if str[i] == letter:
              return index
          else:
              return '-1'
          i = i + 1