Difference between revisions of "Code Snippet: Long Strings"

From Coder Merlin
(Created page with "let longString = """ We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence,...")
 
Line 1: Line 1:
== Long String Literals  ==
<syntaxhighlight lang="swift">
let longString = """
let longString = """
We the People of the United States, in Order to form a more perfect Union, establish Justice,
We the People of the United States, in Order to form a more perfect Union, establish Justice,
Line 7: Line 9:


print(longString)
print(longString)
</syntaxhighlight>

Revision as of 15:16, 6 December 2018

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Long String Literals[edit]

let longString = """
We the People of the United States, in Order to form a more perfect Union, establish Justice,
insure domestic Tranquility, provide for the common defence, promote the general Welfare, and
secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this
Constitution for the United States of America.
"""

print(longString)