Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Using slices solution in Clear category for Split List by erykcoapl
def split_list(items: list) -> list:
index = (len(items)+1)//2
return [items[:index], items[index:]]
March 6, 2021
Comments: