Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
len(items[::2]) solution in Clear category for Split List by StefanPochmann
def split_list(items):
h = len(items[::2])
return [items[:h], items[h:]]
March 30, 2024
Comments: