[Tutor] can any one help

Luke Paireepinart rabidpoobear at gmail.com
Sun Jan 31 02:36:30 CET 2010


On Sat, Jan 30, 2010 at 5:40 PM, Grigor Kolev <grigor.kolev at gmail.com>wrote:

> Excuse me but I have question too.
> Why when i write this function in python shell not work says
> SyntaxError: invalid syntax
> but when I use IDLE make endless loop
>
Your tabbing is probably messed up or something.

You guys both need to be a lot more clear with your questions.
If it doesn't seem like you put in the effort for a proper post then you're
unlikely to get a proper reply.

-Luke


> Sorry I also teach Python.
> > def fibn(n):
> > a,b=15,2
> > while a>n:
> > print a,     # it is same like         print a, a, b = a, a+b
> > You can not print this. SyntaxError: invalid syntax
> > a,b=a,a+b
> > fibn(-1)
> --
> Grigor Kolev <grigor.kolev at gmail.com>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100130/4967ab29/attachment.htm>


More information about the Tutor mailing list