Guest User

Untitled

a guest
Jul 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. # I want to insert a string between each n characters of a string.
  2. # Any better way than this?
  3. ' '.join([''.join(t) for t in izip_longest(*[iter("011001010110")]*4 , fillvalue='')])
Add Comment
Please, Sign In to add comment