slice and dice solution in Clear category for Replace Last by juestr
def replace_last(items: list) -> list: return items[-1:] + items[:-1]
Jan. 30, 2020