![Python-courses-python-exercises-python-sets-python-inheritance](https://1.bp.blogspot.com/-T3BongcoJFo/X4CftQxVL8I/AAAAAAAAB5U/Lf59WgNyhGo2FdogKqxv0PIy_Ef7XDPdgCLcBGAsYHQ/s0/my-python-courses-python-exercises-with-solutions.png)
Exercise 93
Write a Python program which wrap a given string into a paragraph of given width Solution
import textwrap
def wrapText(s , w):
return textwrap.fill(s,w)
# Example
s = "Python is open source programming language"
print(wrapText(s , 20))
"""
The out put is:
Python is open
source programming
language
"""
Younes Derfoufi
my-courses.net
my-courses.net