You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
455 B
20 lines
455 B
spam = "That is Alice's cat." |
|
|
|
############################################################################### |
|
# Escape Characters |
|
# \' single quote |
|
# \" double quote |
|
# \\ backslash |
|
# \n newline |
|
# \t tab |
|
############################################################################### |
|
|
|
# Raw string prints everything literally |
|
print(r"That is Alice\'s cat/n") |
|
|
|
# Multiline strings |
|
print(""" |
|
This is a multi-line string. |
|
It is made up of three lines. |
|
""") |
|
|
|
|