Skip to content

Instantly share code, notes, and snippets.

@Flushot
Created October 4, 2013 01:53
Show Gist options
  • Select an option

  • Save Flushot/6819842 to your computer and use it in GitHub Desktop.

Select an option

Save Flushot/6819842 to your computer and use it in GitHub Desktop.
factorial in python
fact = lambda n: n * fact(n - 1) if n > 0 else 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment