4 ms·
I'm proud to be a Lazy Python Programmer... but not lazy enough to skip "What's New in Python 2.5": def factorial(x): return x * factorial(x-1) if
by mrshoe 17y ago
I'm proud to be a Lazy Python Programmer... but not lazy enough to skip "What's New in Python 2.5":
def factorial(x):
return x * factorial(x-1) if x > 1 else 1
- deleted 17y ago[deleted]