Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = list(map(int,input().replace(',', ' ').split(' ')))
- a1=[]
- a2=[]
- for i in s:
- if s.index(i)%2==0:
- a2.append(i)
- else:
- a1.append(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement