You should use print message directly, which is enough (it will print a tuple of additional arguments).
A small addition to the previous answers: in Python 2.x, print not a function, but an operator , but print(arg1, arg2) valid ... like using the print statement on tuple (arg1, arg2) .
This is slightly different from print arg1, arg2 , as you can see:
>>> print 'aaa', 'bbb' aaa bbb >>> print('aaa', 'bbb') ('aaa', 'bbb')
Now, in addition to the answer to the topic:
case 1 : do not use * to expand tuple argument
>>> def p(*args): ... a(args)
The result is a tuple of a tuple.
Case 2 : expanding arguments in p :
>>> def p(*args): ... a(*args)
The result is a tuple of arguments given by p .
So *args is the correct use, but it is not allowed in the instruction.
source share