First solution in Clear category for Replace Last by Tinus_Trotyl
def replace_last(line: list) -> list: return [*line[-1:], *line[:-1]]
Jan. 10, 2021