eleven brief tour of the standard library -part ii this second tour covers more advanced modules that support professional programming needs these modules rarely occur in small scripts output formatting the reprlib module provides version of repr(customized for abbreviated displays of large or deeply nested containersimport reprlib reprlib repr(set('supercalifragilisticexpialidocious')"{' '' '' '' '' '' '}the pprint module offers more sophisticated control over printing both built-in and user defined objects in way that is readable by the interpreter when the result is longer than one linethe "pretty printeradds line breaks and indentation to more clearly reveal data structureimport pprint [[[['black''cyan']'white'['green''red']][['magenta''yellow']'blue']]pprint pprint(twidth= [[[['black''cyan']'white'['green''red']][['magenta''yellow']'blue']]the textwrap module formats paragraphs of text to fit given screen widthimport textwrap doc """the wrap(method is just like fill(except that it returns list of strings instead of one big string with newlines to separate the wrapped lines ""print(textwrap fill(docwidth= )the wrap(method is just like fill(except that it returns list of strings instead of one big string with newlines to separate the wrapped lines the locale module accesses database of culture specific data formats the grouping attribute of locale' format function provides direct way of formatting numbers with group separators