Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Replace Last by belka-fiz
def replace_last(line: list) -> list:
return [line.pop()] + line if line else line
July 2, 2021