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