F
faucheuse
Hi, (new to python and first message here \o/)
I was wondering something :
when you do : return value1, value2, value3
It returns a tuple.
So if I want to pass these value to a function, the function have to
look like :
def function(self,(value1, value2, value3)) #self because i'm working
with classes
I tried it, and it works perfectly, but I was wondering if it's a good
choice to do so, if there is a problem by coding like that.
So my question is : Is there a problem doig so ?
I was wondering something :
when you do : return value1, value2, value3
It returns a tuple.
So if I want to pass these value to a function, the function have to
look like :
def function(self,(value1, value2, value3)) #self because i'm working
with classes
I tried it, and it works perfectly, but I was wondering if it's a good
choice to do so, if there is a problem by coding like that.
So my question is : Is there a problem doig so ?