Skip to content

Instantly share code, notes, and snippets.

@esenthil2018
Created January 16, 2022 06:21
Show Gist options
  • Select an option

  • Save esenthil2018/88fad10b8adb44a0a31e34ef40f7633b to your computer and use it in GitHub Desktop.

Select an option

Save esenthil2018/88fad10b8adb44a0a31e34ef40f7633b to your computer and use it in GitHub Desktop.
def factor(n):
print('Factor{0}!'.format(n))
return 1 if n < 2 else n * factor(n-1)
factor(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment