How not to print the line break in code? (Python 2.7)
Example:
print("Hello world, this is a very very long sentence with variables 1:\n%s\nVariable 2:\n%s\nVariable 3:\n%s\nVariable 4:\n%s\nVariable 5:\n%s" % (var1, var2, var3, var4, var5) )
In fact there is more variables but I cut this to 5 for the example.
I do need the '\n'.
For a better readability, I need to write this print
statement on several lines within the code. But inserting some line breaks makes these line breaks appear on the output (which I do not want to).
Is there a way not to display line breaks (but keeping display the desired '\n')?