Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
generator solution in Clear category for Move Zeros by Phil15
def move_zeros(items):
later = []
for item in items:
if item:
yield item
else:
later.append(item)
yield from later
Sept. 9, 2022
Comments: