Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
easy rearrangement solution in Clear category for Replace Last by new_hoschi
from typing import Iterable
def replace_last(items: list) -> Iterable:
return [items[-1]] + items[:-1] if items else items
March 29, 2020