table continued character output format , floating point as [-] dddddde+-xx use % or % for exponents less than - or greater than the precisionotherwiseuse % string or any object the formatting code uses str(to generate strings produces the same string as produced by repr(single character literal between the character and the conversion characterthe following modifiers may appearin this order key name in parentheseswhich selects specific item out of the mapping object if no such element existsa keyerror exception is raised one or more of the followingn signindicating left alignment by defaultvalues are right-aligned signindicating that the numeric sign should be included (even if positiven indicating zero fill number specifying the minimum field width the converted value will be printed in field at least this wide and padded on the left (or right if the flag is givento make up the field width period separating the field width from precision number specifying the maximum number of characters to be printed from stringthe number of digits following the decimal point in floating-point numberor the minimum number of digits for an integer in additionthe asterisk (*character may be used in place of number in any width field if presentthe width will be read from the next item in the tuple the following code illustrates few examplesa "hellod {' ': ' ': ' ':'world' " is %da "% % ( ,br "%+ % ( ,br "%( )- %( ) gd "% % (cd[' '] "%* ( , ,br " %de " is "+ + " "hell worldr " " when used with dictionarythe string formatting operator is often used to mimic the string interpolation feature often found in scripting languages ( expansion of lib fl ff