by @CodingExample

How to create a multi-line string in Python

Home » python » How to create a multi-line string in Python

We can use triple quotes """ """ 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 !!!