<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>elis aeris schrieb:</tt>
<blockquote
cite="mid:674d5ce60803211701h57ae5954lac043bdbec931ca5@mail.gmail.com"
type="cite"><tt>is it possible to return two values?<br>
</tt>
<pre wrap=""><tt>
</tt></pre>
</blockquote>
<tt>Yes:<br>
>>> def return2():<br>
return "this", "that"<br>
<br>
>>> return2()<br>
('this', 'that')<br>
>>> a,b=return2()<br>
>>> a<br>
'this'<br>
>>> b<br>
'that'<br>
>>> <br>
Regards,<br>
Gregor<br>
</tt><br>
<blockquote
cite="mid:674d5ce60803211701h57ae5954lac043bdbec931ca5@mail.gmail.com"
type="cite">
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
Tutor maillist - <a class="moz-txt-link-abbreviated" href="mailto:Tutor@python.org">Tutor@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a>
</pre>
</blockquote>
<br>
</body>
</html>