Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
ceil idx and make that list out of it solution in Clear category for Split List by oLeBeLo
from math import ceil
def split_list(items: list) -> list:
idx = ceil(len(items)/2)
return [items[:idx],items[idx:]]
Oct. 18, 2020