Can python find fibonacci series in a single line of code?
Lulu of the Lotus-Eaters
mertz at gnosis.cx
Tue Nov 12 00:44:40 EST 2002
|"Pittaya" <a_human_work at hotmail.com> wrote in message
|> 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?
Sure:
python -c "import urllib; print urllib.urlopen('http://gnosis.cx/fib.txt').read()"
*wink*
Yours, Lulu...
--
_/_/_/ THIS MESSAGE WAS BROUGHT TO YOU BY: Postmodern Enterprises _/_/_/
_/_/ ~~~~~~~~~~~~~~~~~~~~[mertz at gnosis.cx]~~~~~~~~~~~~~~~~~~~~~ _/_/
_/_/ The opinions expressed here must be those of my employer... _/_/
_/_/_/_/_/_/_/_/_/_/ Surely you don't think that *I* believe them! _/_/
More information about the Python-list
mailing list