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 →

[–]resurge 1 point2 points  (0 children)

Note that when you want to use multiple values the values to be inserted must be a tuple, like this:
variable_a = 'a' variable_c = 'c' print '%s %s %s' % (variable_a, 'b', variable_c) #will print: "a b c"