[Tutor] returning two values continued

elis aeris hunter92383 at gmail.com
Mon Mar 24 00:41:21 CET 2008


def returning ():
    a = 1
    b = 2
    return a, b


ab = returning()


does this work?

if it does, is ab a tuple of 2 and [0] being a and [1] being b?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080323/48df6bf3/attachment.htm 


More information about the Tutor mailing list