def even_num (a): count=0 new=[] for c in a: if c%2==0: new[count]=c count=count+1 return new a=[1,2,3,4] z=even_num(a) print(z)