String Format: Force eight digits in integer : Output Format « Development « Python
- Python
- Development
- Output Format
String Format: Force eight digits in integer

integerValue = 4237
print "Force eight digits in integer %.8d" % integerValue
Related examples in the same category