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