Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. # Convert abcd into 0xab, 0xcd
  2. reduce(lambda x, y : x + y, map(lambda x : '0x' + x + ', ', map(''.join, zip(*[iter(str)] * 2))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement