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.19
TRX 0.14
JST 0.030
BTC 61240.20
ETH 3247.86
USDT 1.00
SBD 2.45