Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Split List by armandolios
def split_list(items: list) -> list:
half = sum(divmod(len(items), 2))
return [items[:half], items[half:]]
Aug. 21, 2020
Comments: