Multiline Strings in Python
Python supports different type and format strings. In this tutorial we will simply look multi line strings. We have following code and want to type it in single expression in multi line.
We can use double quote by wrapping multiple lines. This will legal for python programming. And we can end the string whenever we want like below.
We can write a string in a single line line below.
EOF is special keyword used to specify multi line strings. The start of the multiline string is marked with
<<< EOF and then the string will be given. We also need to specify the end of the string with
EOF too like below.
$html= <<< EOF