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