def tull(liste): out = [] for i in liste: out.append(i) out.append(0) return out print(tull([0,2,5,2,1]))