appendix python review formatted output python overloads the modulus operator (%for use with strings to produce formatted output consider the following exampleoutput "your average is % favggrade printoutput which creates new string using the format string from the left side of the operator and replacing the field format specifier (% fwith the value of the avggrade variable the resulting string is then printed to standard outputyour average is it is common to nest the formatted string operation within the print(function when used to produce standard outputprint"your average is % favggrade more than one field format specifier can be used in the format definition in this casethe replacement values must be provided as tupleprint"origin(% % )\ (pointxpointythe replacement values are associated with the field format specifiers in the order listed and must be of the appropriate type the following code segment shows the use of the formatted output to produce report containing dollar amounts aligned on the decimal pointprint"wages% fwages print"state taxes% fstatetaxes print"fed taxes% ffedtaxes print"pay% ftakehome there are different field format specifiers for the various primitive data types and several optional arguments that can be used to tweak the output field format specifier has the general structure%[flags][width]precision]code flags -indicates zero fills or optional justification and is one of the following fill preceding blank spaces within the field with zeroes right-justify the value within the field left-justify the value within the field width -is an integer value indicating the number of spaces in the field used when formatting the replacement value precision -is the number of digits to be printed after the decimal place when printing floating-point value