Page 1 of 1

How to return multiple value from function ?

Posted: Sun Jan 04, 2015 5:45 pm
by chonchonchon
Hi,

I've a function that return 3 values. (A,b,c).

Actually, I'm using global variables to save them and acces them back in the main script.

How can I return these variables without need of global var?

Thx for your help

Re: How to return multiple value from function ?

Posted: Sun Jan 04, 2015 6:00 pm
by chad
Python? Use tuples or lists... Global variables are generally not a good coding practice.