karolinagergert

Untitled

Jul 26th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 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.index%2 == 0:
  6. b.append(a[i])
  7. i+=1
  8. elif i.index%2 != 0:
  9. c.append(a[i+1])
  10. i+=1
  11. else:
  12. print(' '.join(map(str,b+c)))
Advertisement
Add Comment
Please, Sign In to add comment