creating multiline strings in Python

in #python4 years ago (edited)

Triple Quotes for a Multiline Python String

You can use a triple quote or triple double-quote to create a multiline string in Python:

multiline = '''
a string
  with many lines
    in python.
'''

multiline = """
You can use double-quotes
  for a multiline string too,
  and "quotes" within the 'string'.
"""

Read more here: https://blog.modernlearner.org/multiline-strings-in-python/

Coin Marketplace

STEEM 0.16
TRX 0.25
JST 0.034
BTC 95670.34
ETH 2679.38
SBD 0.69