Skip to content

Instantly share code, notes, and snippets.

@ishikawa
Created August 7, 2008 05:31
Show Gist options
  • Select an option

  • Save ishikawa/4344 to your computer and use it in GitHub Desktop.

Select an option

Save ishikawa/4344 to your computer and use it in GitHub Desktop.
def factorial(n):
return reduce(lambda x, y: x*y, range(1, n+1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment