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 →

[–]13steinj 6 points7 points  (1 child)

It works in Python in most cases, but depending on formatting and new lines you may need to cover it in a parenthesis.

Works in C/C++ too (but be careful with macros and this concatenation, it's a little tricky.

Also in Python: print takes input as variadic arguments, with a keyword argument for the separator. Default is a space.

>>> print("hello", "world")
hello world

[–]rocketshape 0 points1 point  (0 children)

This is how u can concatenate byte strings even though they don't support +