Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First Replace Last solution in Clear category for Replace Last by Wakko_Warner
def replace_last(line: list) -> list:
return [line[-1]] + line[:-1] if line else []
Dec. 3, 2020