func_code: def index(str, letter, default=0):
      while default == 0:
          if letter not in str:
              return -1
          else:
              count = 0
              while str[count] != letter:
                  count += 1
      return count