To write a string that spans several lines, you can use triple quotes instead of ordinary quotes : triple quotes « String « Python Tutorial






# 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
.'''








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