Python Long String

#Python

Python long string formatting

QUERY = (
    'SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013` '
    'WHERE state = "TX" '
    'LIMIT 100')

is equivalent to

QUERY='SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013` WHERE state = "TX" LIMIT 100'

Published: by ;

Lei Ma (2018). 'Python Long String', Datumorphism, 12 April. Available at: https://datumorphism.leima.is/til/programming/python/python-long-string/.

Current Ref:

  • til/programming/python/python-long-string.md