Advertisement
here2share

# intermerge.py

Feb 17th, 2020
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. # intermerge.py
  2.  
  3. t = range(20)
  4. a,b = [t,t[::-1]]
  5. out = [0]*(2*len(min(a,b)))
  6. out[::2] = a
  7. out[1::2] = b
  8.  
  9. print(out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement