<reponame>ethansaxenian/RosettaDecode
import textwrap
help(textwrap.fill)

fill(text, width=70, **kwargs)

txt = '''\
Reformat the single paragraph in 'text' to fit in lines of no more
than 'width' columns, and return a new string containing the entire
wrapped paragraph.  As with wrap(), tabs are expanded and other
whitespace characters converted to space.  See TextWrapper class for
available keyword args to customize wrapping behaviour.'''
print(textwrap.fill(txt, width=75))

print(textwrap.fill(txt, width=45))

print(textwrap.fill(txt, width=85))

import textwrap
help(textwrap.fill)

fill(text, width=70, **kwargs)

txt = '''\
Reformat the single paragraph in 'text' to fit in lines of no more
than 'width' columns, and return a new string containing the entire
wrapped paragraph.  As with wrap(), tabs are expanded and other
whitespace characters converted to space.  See TextWrapper class for
available keyword args to customize wrapping behaviour.'''
print(textwrap.fill(txt, width=75))

print(textwrap.fill(txt, width=45))

print(textwrap.fill(txt, width=85))
\ Reformat the single paragraph in 'text' to fit in lines of no more than 'width' columns, and return a new string containing the entire wrapped paragraph.  As with wrap(), tabs are expanded and other whitespace characters converted to space.  See TextWrapper class for available keyword args to customize wrapping behaviour.