fact = (lambda f: f(f))(lambda f: (lambda n: n*f(f)(n-1) if n else 1)) for n in range(6): print(n, fact(n))
Standard input is empty
0 1 1 1 2 2 3 6 4 24 5 120
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!