Skip to content

Instantly share code, notes, and snippets.

@bee-san
Created March 29, 2019 23:03
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 bee-san/6811e27e2df3adb84d532239708eb1fa to your computer and use it in GitHub Desktop.
Save bee-san/6811e27e2df3adb84d532239708eb1fa to your computer and use it in GitHub Desktop.
factorial.py
n = 6
def recur_factorial(n):
if n == 1:
return n
else:
return n * recur_factorial(n-1)
print(recur_factorial(n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment