Skip to content

Instantly share code, notes, and snippets.

@emiel
Created March 13, 2013 20:45
Show Gist options
  • Save emiel/5155972 to your computer and use it in GitHub Desktop.
Save emiel/5155972 to your computer and use it in GitHub Desktop.
Python multi-line string (wrap with parenthesis)
def foobar():
stmt = (
"select * from foobar"
" where x > 3"
" and y < 3"
" and z = 3"
)
return stmt
print(foobar())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment