I am having some difficulty changing a hex to an int/char (char preferably). Via the website; http://home2.paulschou.net/tools/xlate/ I enter the hex of C0A80026 into the he
A simple way
>>> s = 'C0A80026' >>> map(ord, s.decode('hex')) [192, 168, 0, 38] >>>
if you prefer list comprehensions
>>> [ord(c) for c in s.decode('hex')] [192, 168, 0, 38] >>>