Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Looks like short code solution in Clear category for Replace Last by Sejon
def replace_last(data: list) -> list:
if data:
data.insert(0, data.pop())
return data
May 19, 2021