Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>>lista=[32,5, 12, 8, 3, 75, 2, 15]
- >>>a,b,c=0,len(lista),-2
- >>>t1=[""]
- >>>t2=[""]
- >>>t3=[""]
- >>>while a<=b:
- ... t1=lista[c]
- ... a,c=a+1,c+1
- ... if t1%2==0:
- ... t2.append(lista[c])
- ... else:
- ... t3.append(lista[c])
- ...
- >>>print t2,t3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement