Python: printing integers in hexadecimal format

How to print integers in hexadecimal format in Python?

To print an integer i in hexadecimal format in Python:

print hex(i)
Answered by anonymous.

Leave a Reply

Your email address will not be published. Required fields are marked *