Example 1: Using triple quotes
Output
The only way to learn to program is by writing code.
You can use '''(multiline string)''' or """(multiline string)""" to print a multiline string as shown above.
Example 2: Using parentheses and a single/double quotes
Output
The only way to learn to program is by writing code.
If you use (" ") syntax, you need to specify the newlines explicitly using \n.
Example 3: Using \
Output
The only way to learn to program is by writing code.
You can use \ as in the above example code to write a multiline string.