convert integers to octal and hexadecimal strings with a string formatting expression: : Int « Data Type « Python
- Python
- Data Type
- Int
convert integers to octal and hexadecimal strings with a string formatting expression:
print "%o %x %X" % (64, 64, 255)
Related examples in the same category