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