How to convert a number to hex number?
steve at holdenweb.com
Tue Nov 8 23:09:37 CET 2005
Paul Rubin wrote:
> Steve Holden <steve at holdenweb.com> writes:
>>You're usually smarter than this, or am I missing some joke?
>> >>> hex(33*33)
> You used only one * (multiplication), I used two *'s (exponentiation).
> >>> hex(33**33)
That makes sense. Sorry, a bit sleep-deprived today.
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/
More information about the Python-list