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