summaryrefslogtreecommitdiff
path: root/progs/a31.py
blob: 85a4db14c580afe339344098ac535d05f522cba5 (plain)
1
2
3
4
5
def move_zero(num_list):
    a = [0 for i in range(num_list.count(0))]
    x = [ i for i in num_list if i != 0]
    x.extend(a)
    return (x)