Advertisement
MagicWinnie

Untitled

Dec 7th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. s = list(map(int,input().replace(',', ' ').split(' ')))
  2. a1=[]
  3. a2=[]
  4. for i in s:
  5.     if s.index(i)%2==0:
  6.         a2.append(i)
  7.     else:
  8.         a1.append(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement