How to create a multi-line string in Python
In this tutorial, we are going to learn about how to create a multi-line string in Python
Using the triple quotes
We can use the triple quotes """
string literal syntax to create a multi-line string in python.
Here is an example:
a = """you can type
very long string inside this
quotes
enjoy !!!
..."""
print(a)
Output:
you can type
very long string inside this
quotes
enjoy !!!