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