Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Sort Except Zero by _Chico_
from typing import Iterable
def except_zero(items: list) -> Iterable:
a= [i for i in range(len(items)) if items[i]==0]
b= sorted([ii for ii in items if ii!=0])
[b.insert(iii,0) for iii in a ]
return b
May 13, 2021