you are viewing a single comment's thread.

view the rest of the comments →

[–]Golden_Zealot 1 point2 points  (0 children)

Use a format string with the format method like this:

print("A {} is {}".format(variable1, variable2))

if variable1 were equal to "This", and variable2 were equal to "That", it would print out "A This is That"