oh this is brillant, i LOVE python

thank for replying

On Fri, Mar 21, 2008 at 5:11 PM, Gregor Lingl <[EMAIL PROTECTED]> wrote:

>  elis aeris schrieb:
>
> is it possible to return two values?
>
>  Yes:
> >>> def return2():
>     return "this", "that"
>
> >>> return2()
> ('this', 'that')
> >>> a,b=return2()
> >>> a
> 'this'
> >>> b
> 'that'
> >>>
> Regards,
> Gregor
>
>  ------------------------------
>
> _______________________________________________
> Tutor maillist  -  [EMAIL PROTECTED]://mail.python.org/mailman/listinfo/tutor
>
>
>
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to