Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Split List by twilyght
import math
def split_list(items: list) -> list:
half = math.ceil(len(items) / 2)
return [items[:half], items[half:]]
May 7, 2020
Comments: