Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple solution solution in Clear category for Split List by Goodester
from math import ceil
def split_list(items: list) -> list:
half_len = ceil(len(items) / 2)
return [items[:half_len], items[half_len:]]
Aug. 23, 2020