a=1 b=[] c=[] for x in range(10): if a%2==0: b.append(a) elif a%2==1: c.append(a) else: l=1 a=a+1 print('needed list',b,c)

Built With

Share this project:

Updates