You are viewing a single comment's thread. Return to all comments →
import textwrap s = input() w = int(input()) l = " ".join(textwrap.wrap(s,w)) print(textwrap.fill(l,w))
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 →