In this example we will show how to assign a multiline string to a variable using three double quotes in Python.
Source Code
my_str = """Python is an easy to learn,
powerful programming language.
It has efficient high-level data structures
and a simple but effective approach to
object-oriented programming."""
print(my_str)
Output:
Python is an easy to learn,
powerful programming language.
It has efficient high-level data structures
and a simple but effective approach to
object-oriented programming.