Ad
  • Custom User Avatar

    Maybe you didn't check case with "None" before you do [-1]?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    I have the error

    ulist.append(iterable[-1])
    IndexError: string index out of range

    if you use iterable[-1] isn't it supposed to give you the last value of the string? The code is working on pycharm