Skip to content

Instantly share code, notes, and snippets.

@ibebrett
Last active August 29, 2015 14:06
Show Gist options
  • Save ibebrett/a069a83de781d4c66901 to your computer and use it in GitHub Desktop.
Save ibebrett/a069a83de781d4c66901 to your computer and use it in GitHub Desktop.
def fact(x):
if x == 0:
return 1
else
return x*fact(x-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment