I'm very new to Python. I'm looking to return a varying number of objects (will eventually be lists
or pandas
), ideally with their original name.
So far I'm looking at something like this:
def function(*Args):
Args = list(Args)
for i in range(len(Args)):
Args[i] += 1
print Args[i]
return *all variables with original name, in this case a, b, c, d *
a=1
b=2
c=3
d=4
a, b, c, d = function(a, b, c, d)
Any help, ideas or comments would be very appreciated. Thanks.