hex notation funtion

wittempj at hotmail.com wittempj at hotmail.com
Tue Jan 18 20:16:40 CET 2005


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




More information about the Python-list mailing list