programming-examples/python/String/Python program to remove existing indentation from all of the lines in a given text.py

12 lines
467 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
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)
print()
print(text_without_Indentation )
print()