Skip to content

Instantly share code, notes, and snippets.

@BolajiOlajide
Last active April 6, 2017 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BolajiOlajide/174923e687c8ee9f76a3dad531c136c4 to your computer and use it in GitHub Desktop.
Save BolajiOlajide/174923e687c8ee9f76a3dad531c136c4 to your computer and use it in GitHub Desktop.
Python Recursive Function 2
def factorial(num):
if num == 0:
return 1
else:
return num * factorial(num - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment