Advertisement
karolinagergert

Untitled

Jul 17th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. b=[]
  2. c=[]
  3. a=list(map(int, input().split()))
  4. for i in range(len(a)):
  5. if i%2==0:
  6. b.append(i)
  7. elif i%2!=0:
  8. c.append(i)
  9. print(' '.join(map(str,b+c)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement