# example.py # # Examples of reformatting text to different column widths # A long string s = "Look into my eyes, look into my eyes, the eyes, the eyes, \ the eyes, not around the eyes, don't look around the eyes, \ look into my eyes, you're under." import textwrap print(textwrap.fill(s, 70)) print() print(textwrap.fill(s, 40)) print() print(textwrap.fill(s, 40, initial_indent=' ')) print() print(textwrap.fill(s, 40, subsequent_indent=' ')) print()