def fmin(ll): # minv = ll[0] ind = 0 lr=len(ll) for x in range(1,lr): if ll[x]0: ind=fmin(l) res.append(l.pop(ind)) return res