tags:

views:

106

answers:

1

I have the following code:

def foo(*args)
    print len(args)
    print args

now I'd like to know how to return that same args list. I guess it should be simple?

Thanks

+6  A: 

It is indeed simple:

return args

Here is the Python tutorial: There are also many resources on beginners python on the net. Some are listed in this question.

Lennart Regebro