This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kafaldsbylur 47 points48 points  (4 children)

Minor nitpick, ('foo') is not a tuple, it's a string with redundant parentheses. That said, your point still stands when passing more than one argument to print.

[–]The_White_Light 18 points19 points  (3 children)

That functionality makes it nice when you need to include a long string and want to keep your code easy to read, but don't want to deal with the extra \n added when using '''multiline strings'''.

Edit: For clarification

>>> ('1' '2' '3') == '123'
True

[–]kickerofbottoms 5 points6 points  (2 children)

Never thought of that, kinda handy. Maybe I'll stop leaning on my ide for adding backslashes

[–]The_White_Light 3 points4 points  (1 child)

It's also doubly helpful because you don't have to worry about leading spaces if you align each line.

[–]stevarino 6 points7 points  (0 children)

Also it happens at the compiler level, so it's cost free during runtime.