Skip to content

Instantly share code, notes, and snippets.

@wicksome
Created August 21, 2014 16:18
Show Gist options
  • Save wicksome/41c3521e07820761d22c to your computer and use it in GitHub Desktop.
Save wicksome/41c3521e07820761d22c to your computer and use it in GitHub Desktop.
파이썬 3 팩토리얼
def factorial(x):
if(x == 1):
return x
return x * factorial(x-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment