Text Wrap

  • + 0 comments

    textwrap.fill(text, width)

    Wraps the single paragraph in text, and returns a single string containing the wrapped paragraph. fill() is shorthand for "\n".join(wrap(text, ...))

    So you don't have to use both .join() and .fill()