$BlogRSDURL$>
Pseudorandom Thoughts
observations, ideas, inferences, and little hops of the imagination
2004-10-06
stupid python tricks. what does this one-liner do?
python -c 'import sys;print (lambda f,n:f(f,n))(lambda g,n:[lambda:1,lambda:g(g,n-1)+g(g,n-2)][bool(n>1)](),int(sys.argv[1]));'
42
// posted by bsy @
10/06/2004 01:43:00 AM
(0) comments
|
Links
My Profile
Home page
Tygar blog
Tea Leaves
News
Maps
ARCHIVES
03/01/2004 - 04/01/2004
10/01/2004 - 11/01/2004
12/01/2004 - 01/01/2005
03/01/2005 - 04/01/2005
07/01/2005 - 08/01/2005
08/01/2005 - 09/01/2005
09/01/2005 - 10/01/2005
10/01/2005 - 11/01/2005
11/01/2005 - 12/01/2005
01/01/2006 - 02/01/2006
02/01/2006 - 03/01/2006
03/01/2006 - 04/01/2006
04/01/2006 - 05/01/2006
08/01/2006 - 09/01/2006
12/01/2006 - 01/01/2007
03/01/2007 - 04/01/2007
03/01/2008 - 04/01/2008
12/01/2008 - 01/01/2009
09/01/2018 - 10/01/2018
05/01/2021 - 06/01/2021