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
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
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.