Demo entry 6355457

Simple factorial function


Submitted by anonymous on Apr 13, 2017 at 22:12
Language: Python. Code size: 61 Bytes.

def fact(n, acc=1): return acc if not n else fact(n-1, n*acc)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).