figure - typing the wrong input type generates an error instead of an exception formatting strings you can format strings in number of ways using python the main emphasis of formatting is to present the string in form that is both pleasing to the user and easy to understand formatting doesn' mean adding special fonts or effects in this casebut refers merely to the presentation of the data for examplethe user might want fixed-point number rather than decimal number as output you have quite few ways to format strings and you see number of them as the book progresses howeverthe focus of most formatting is the format(function you create formatting specification as part of the string and then use the format(function to add data to that string format specification may be as simple as two curly brackets {that specify placeholder for data you can number the placeholder to create special effects for example{ would contain the first data element in string when the data elements are numberedyou can even repeat them so that the same data appears more than once in the string the formatting specification follows colon when you want to create just formatting specificationthe curly brackets contain just the colon and whatever formatting you want to use for example{:fwould create fixed-point number as output if you want to number the entriesthe number that precedes the colon{ :fcreates fixed-point number output for data element one the formatting specification follows this formwith the italicized elements serving as placeholders here[[fill]align][sign][#][ ][width][,]precision][type