[Tutor] can any one help
Grigor Kolev
grigor.kolev at gmail.com
Sun Jan 31 00:40:41 CET 2010
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
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>
More information about the Tutor
mailing list