I have a very long query. I would like to split it in several lines in Python. A way to do it in JavaScript would be using several sentences and joining them with a +<
+<
I usually use something like this:
text = ''' This string was typed to be a demo on how could we write a multi-line text in Python. '''
If you want to remove annoying blank spaces in each line, you could do as follows:
text = '\n'.join(line.lstrip() for line in text.splitlines())