and to force representational form but only using ascii characters here is an example"{ { ! { ! { ! }format(decimal decimal(" ")" decimal(' 'decimal(' ')in this casedecimal decimal' string form produces the same string as the string it provides for str format(which is what commonly happens alsoin this particular examplethere is no difference between the representational and ascii representational forms since both use only ascii characters here is another examplethis time concerning string that contains the title of movie"held in the variable movie if we print the string using "{ }format(moviethe string will be output unchangedbut if we want to avoid non-ascii characters we can use either ascii(movieor "{ ! }format(movie)both of which will produce the string '\ ffb\ \ \ \ \ \ bso far we have seen how to put the values of variables into format stringand how to force string or representational forms to be used now we are ready to consider the formatting of the values themselves format specifications the default formatting of integersfloating-point numbersand strings is often perfectly satisfactory but if we want to exercise fine controlwe can easily do so using format specifications we will deal separately with formatting stringsintegersand floating-point numbersto make learning the details easier the the general syntax that covers all of them is shown in figure for stringsthe things that we can control are the fill characterthe alignment within the fieldand the minimum and maximum field widths string format specification is introduced with colon (:and this is followed by an optional pair of characters-- fill character (which may not be }and an alignment character for right alignthen comes an optional minimum width integerand if we want to specify maximum widththis comes last as period followed by an integer note that if we specify fill character we must also specify an alignment we omit the sign and type parts of the format specification because they have no effect on strings it is harmless (but pointlessto have colon without any of the optional elements let' see some exampless "the sword of truth"{ }format(sdefault formatting 'the sword of truth