Hello everyone, there is an example in python

def foo1(*args): print args def foo2(**kwargs): print kwargs foo1(1, 2, 3) foo2(a=1, b=2, c=3) 

But it does not work here is the message:

error image

    1 answer 1

    You use Python 3, in which, unlike Python 2, print is not an expression, but a function. Therefore, it will be correct print(args) .