15 lines
623 B
Python
15 lines
623 B
Python
|
import textwrap
|
||
|
sample_text ='''
|
||
|
Python is a widely used high-level, general-purpose, interpreted,
|
||
|
dynamic programming language. Its design philosophy emphasizes
|
||
|
code readability, and its syntax allows programmers to express
|
||
|
concepts in fewer lines of code than possible in languages such
|
||
|
as C++ or Java.
|
||
|
'''
|
||
|
text_without_Indentation = textwrap.dedent(sample_text)
|
||
|
wrapped = textwrap.fill(text_without_Indentation, width=50)
|
||
|
#wrapped += '\n\nSecond paragraph after a blank line.'
|
||
|
final_result = textwrap.indent(wrapped, '> ')
|
||
|
print()
|
||
|
print(final_result)
|
||
|
print()
|