lolamontes69

Python / Hexstring converter

Jun 2nd, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def hexstring_converter(hexstring):
  2.     splithex = hexstring.split('-')
  3.     for numb in splithex:
  4.         print int(numb, 16),
  5.  
  6. hexstring = str(raw_input('Enter hexstring(including "-") >'))
  7. hexstring_converter(hexstring)
Advertisement
Add Comment
Please, Sign In to add comment