String formatting: Integer, Decimal and Hexadeciaml : Output Format « Development « Python
- Python
- Development
- Output Format
String formatting: Integer, Decimal and Hexadeciaml
integerValue = 4237
print "Integer ", integerValue
print "Decimal integer %d" % integerValue
print "Hexadecimal integer %x\n" % integerValue
Related examples in the same category