Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Replace Last by _Chico_
from typing import Iterable
def replace_last(items: list) -> Iterable:
return items[-1:] + items[:-1]
May 21, 2021
Comments: