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 ;

Table of Contents

Current Ref:

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