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 def factorial(x):
return x * factorial(x-1) if x > 1 else 1No comments yet.