Can python find fibonacci series in a single line of code?

Pittaya a_human_work at hotmail.com
Mon Nov 11 10:20:20 EST 2002


My Perl-addicted friend shows me that he can find fibanicci series in
a single line of code.

perl -le '$b=1; print $a+=$b while print $b+=$a'

can python do something like this?



More information about the Python-list mailing list