Skip to content

Instantly share code, notes, and snippets.

@rafaelmv
Last active October 9, 2015 02:16
Show Gist options
  • Save rafaelmv/353589abbc68229a0176 to your computer and use it in GitHub Desktop.
Save rafaelmv/353589abbc68229a0176 to your computer and use it in GitHub Desktop.
def factorial(num):
return (1 if num == 0 else num * factorial(num - 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment