Advertisement
here2share

# b_textwrap.py

Oct 15th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. # b_textwrap.py
  2.  
  3. import textwrap
  4. text = "I Love Python Coding"
  5. wrapped_text = textwrap.wrap(text, width=10)
  6.  
  7. for line in wrapped_text:
  8.     print(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement