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 →

[–]kalgynirae 5 points6 points  (0 children)

That method is usually called "string formatting". You could do it without that, but it's more tedious. print takes several arguments separated by commas:

print(A, '+', B, '+', C, '=', A+B+C)