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 bostonz1
def split_list(items):
half = len(items) // 2
if len(items) / 2 != half:
return items[:half + 1], items[half + 1:]
return items[:half], items[half:]
Aug. 4, 2020