In [4]:
import textwraptext = "I love Python Coding "# Wrap the text to a specific width wrapped_text = textwrap.wrap(text, width=10)# Print the wrapped textfor line in wrapped_text: print(line) #clcoding.com I love Python Coding


0 Comments:
Post a Comment