Advertisement
ijontichy

<stdin>

Oct 9th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. >>> heh = '0x69 0x27 0x6d 0x20 0x67 0x6f 0x6e 0x6e 0x61 0x20 0x66 0x69 0x67 0x68 0x74 0x20 0x69 0x6a 0x6f 0x6e'.split()
  2. >>> heh2 = []
  3. >>>
  4. >>> for i in heh:
  5. ... xpos = i.find("x")
  6. ... if xpos != -1: i = i[xpos+1:]
  7. ... heh2.append(chr(int(i, 16)))
  8. ...
  9. >>> print("".join(heh2))
  10. i'm gonna fight ijon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement