Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Remove All Before by estelle.doriot
from typing import Iterable
def remove_all_before(items: list, border: int) -> Iterable:
if border not in items:
return items
index = items.index(border)
return items[index:]
July 25, 2023