Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Walrus one-liner solution in Clear category for Split List by tom-tom
def split_list(items: list) -> list:
return [items[:(split_index := (len(items) + 1) // 2)], items[split_index:]]
Jan. 4, 2020
Comments: