Ad
  • 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