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