var1 = \'abc\' var2 = \'xyz\' print(\'literal\' + var1 + var2) # literalabcxyz print(\'literal\', var1, var2) # literal abc xyz
... except for automat
Using a comma gives the print function multiple arguments (which in this case are printed all, seperated by a space. Using the plus will create one argument for print, which is printed in its entirety. I think using the + is best in this case.