Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Replace First by dzhamal.bakriev
from typing import Iterable
def replace_first(items: list) -> Iterable:
if items:
items.append(items[0])
items.remove(items[0])
return items
May 28, 2020
Comments: