print("{:03d}".format(1)) will print 001 code example Example: print("{:03d}".format(1)) will print 001 print ("Hello World")