Skip to content

Instantly share code, notes, and snippets.

@shieldsd
Created March 16, 2012 10:00
Show Gist options
  • Save shieldsd/2049369 to your computer and use it in GitHub Desktop.
Save shieldsd/2049369 to your computer and use it in GitHub Desktop.
Project Euler #15
def fact(n):
s = 1
while n > 0:
s = s * n
n -= 1
return s
print fact(20 * 2) / (fact(20) * fact(20))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment