How on Factorial

Vito 'ZeD' De Tullio zak.mc.kraken at libero.it
Mon Nov 1 12:41:40 EDT 2010


Lawrence D'Oliveiro wrote:

> You know what, I think I actually prefer the trick to Python’s
> backwards-if syntax...

fact = lambda x: x*fact(x-1) if x>1 else 1

naa, it's not too bad...

-- 
By ZeD




More information about the Python-list mailing list