return multiple values from fuction

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Thu Nov 6 15:14:15 EST 2003


Lupe wrote:
> how can I assign the two return values to two distinct variables, as for ex.

By using tuple unpacking:

(varC, varD) = function()


--Irmen





More information about the Python-list mailing list