Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple slice solution in Clear category for Split List by tokyoamado
def split_list(items: list) -> list:
p = (len(items) + 1) // 2
return [items[:p], items[p:]]
Jan. 27, 2020