To write a string that spans several lines, you can use triple quotes instead of ordinary quotes : Triple quotes : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Triple quotes »

 

To write a string that spans several lines, you can use triple quotes instead of ordinary quotes


# You can use triple double quotes, """like this""".
# Both single and double quotes are allowed inside.

print '''this is a test.
this is a test.
"test
.'''



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Triple quotes