Skip to content

Instantly share code, notes, and snippets.

@adrianmoses
Created July 11, 2016 15:39
Show Gist options
  • Save adrianmoses/51bc4fa0d47f4c29dbb3f7b540f8ed31 to your computer and use it in GitHub Desktop.
Save adrianmoses/51bc4fa0d47f4c29dbb3f7b540f8ed31 to your computer and use it in GitHub Desktop.
factorial = lambda n: reduce(lambda x, y: x * y, range(1, n+1))
(6 * 7 * 24 * 60 * 60) == factorial(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment