<!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>
&gt;&gt;&gt; def return2():<br>
&nbsp;&nbsp;&nbsp; return "this", "that"<br>
<br>
&gt;&gt;&gt; return2()<br>
('this', 'that')<br>
&gt;&gt;&gt; a,b=return2()<br>
&gt;&gt;&gt; a<br>
'this'<br>
&gt;&gt;&gt; b<br>
'that'<br>
&gt;&gt;&gt; <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>