Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
MY, and nothing will happen to me solution in Clear category for Replace First by samatdav02
from typing import Iterable
def replace_first(items: list) -> Iterable:
return items[1:]+[items[0]] if len(items)>1 else items
Aug. 7, 2020
Comments: