You are on page 1of 1

A=[1,2,3,4]

B=[]
for k in A:
if k%2==0:
B.append(k)
print(B)

You might also like