Skip to content

Instantly share code, notes, and snippets.

@pmallory
Created February 24, 2015 23:20
Show Gist options
  • Save pmallory/2ce8095ce90142d07528 to your computer and use it in GitHub Desktop.
Save pmallory/2ce8095ce90142d07528 to your computer and use it in GitHub Desktop.
def fact(n):
result =1
for i in range(1, n+1):
result *= i
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment