In the Python console, when I type:
>>> \"\\n\".join([\'I\', \'would\', \'expect\', \'multiple\', \'lines\'])
Gives:
The console is printing the representation, not the string itself.
If you prefix with print
, you'll get what you expect.
See this question for details about the difference between a string and the string's representation. Super-simplified, the representation is what you'd type in source code to get that string.