<br><br><div class="gmail_quote">On Sat, Jan 30, 2010 at 5:40 PM, Grigor Kolev <span dir="ltr">&lt;<a href="mailto:grigor.kolev@gmail.com">grigor.kolev@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Excuse me but I have question too.<br>
Why when i write this function in python shell not work says<br>
SyntaxError: invalid syntax<br>
but when I use IDLE make endless loop<br></blockquote><div>Your tabbing is probably messed up or something.<br><br>You guys both need to be a lot more clear with your questions.<br>If it doesn&#39;t seem like you put in the effort for a proper post then you&#39;re unlikely to get a proper reply.<br>

<br>-Luke<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry I also teach Python.<br>
<div class="im">&gt; def fibn(n):<br>
&gt; a,b=15,2<br>
&gt; while a&gt;n:<br>
&gt; print a,     # it is same like         print a, a, b = a, a+b<br>
&gt; You can not print this. SyntaxError: invalid syntax<br>
&gt; a,b=a,a+b<br>
&gt; fibn(-1)<br>
--<br>
Grigor Kolev &lt;<a href="mailto:grigor.kolev@gmail.com">grigor.kolev@gmail.com</a>&gt;<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br>