Python: printing integers in hexadecimal format

How to print integers in hexadecimal format in Python?
asked Jan 21, 2013 by anonymous

1 Answer

Best answer

To print an integer i in hexadecimal format in Python:

print hex(i)
answered Jan 21, 2013 by anonymous

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost