Skip to content

Instantly share code, notes, and snippets.

@captainsafia
Created August 17, 2012 21:19
Show Gist options
  • Save captainsafia/3382801 to your computer and use it in GitHub Desktop.
Save captainsafia/3382801 to your computer and use it in GitHub Desktop.
Solution to Project Euler Problem 15 in Python
def paths(n):
p=1
for x in xrange(1, n+1): p=p*x
return p
print paths(40)/paths(20)/paths(20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment