import textwrap def wrap(string, max_width): i = textwrap.wrap(string, width=max_width) print(i) z = print(*i, sep=\'\\n\') return z string, max_width =