The program is written in the Python programming language and it uses the "textwrap" module to wrap the given text (paragraph) into multiple lines. The textwrap module provides some convenient functions to format the text into multiple lines.
import textwrap para = """ Python is an interpreted, object-oriented, high-level programming language that can be used for a wide variety of applications. Python is a powerful general-purpose programming language. First developed in the late 1980s by Guido van Rossum. Python is open source programming language. Guido van Rossum named it after the BBC Comedy TV series Monty Python’s Flying Circus """ print(textwrap.fill(para, width=35)) print("\n\n",textwrap.fill(para, width=70))
Python is an interpreted, object- oriented, high-level programming language that can be used for a wide variety of applications. Python is a powerful general- purpose programming language. First developed in the late 1980s by Guido van Rossum. Python is open source programming language. Guido van Rossum named it after the BBC Comedy TV series Monty Python’s Flying Circus Python is an interpreted, object-oriented, high-level programming language that can be used for a wide variety of applications. Python is a powerful general-purpose programming language. First developed in the late 1980s by Guido van Rossum. Python is open source programming language. Guido van Rossum named it after the BBC Comedy TV series Monty Python’s Flying Circus
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions