Created
March 13, 2013 20:45
-
-
Save emiel/5155972 to your computer and use it in GitHub Desktop.
Python multi-line string (wrap with parenthesis)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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