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.ko...@gmail.com>

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to