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