You are viewing a single comment's thread. Return to all 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()
Seems like cookies are disabled on this browser, please enable them to open this website
Text Wrap
You are viewing a single comment's thread. Return to all 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()