Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import textwrap
- from textwrap_example import sample_text
- dedented_text = textwrap.dedent(sample_text).strip()
- for width in [45, 70]:
- print '%d Columns:\n' % width
- print textwrap.fill(dedented_text, width=width)
- print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement