Have no idea what is wrong. In cmd it work:
def replace_first(items: list) -> Iterable:
try:
items = items.append(items[0])
items_a = items[1:]
return items_a
except ValueError:
return items
Result:
TypeError: 'NoneType' object is not subscriptable
replace_first, 8
<module>, 15
Created at: 2021/03/30 11:10; Updated at: 2024/03/27 10:21