hex notation funtion

wittempj at hotmail.com wittempj at hotmail.com
Tue Jan 18 14:16:40 EST 2005


This will do it:
>>> int('10000000', 2)
128
>>> hex(int('10000000', 2))
'0x80'
>>>




More information about the Python-list mailing list