On Sat, Jan 30, 2010 at 5:40 PM, Grigor Kolev <grigor.ko...@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.ko...@gmail.com> > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor