Open this example in the interactive library
Source code
from textwrap import fill
print(fill('One short example of wrapping words.', width=13))Sample output
One short example of wrapping words.

Open this example in the interactive library
from textwrap import fill
print(fill('One short example of wrapping words.', width=13))One short example of wrapping words.