Skip to content

Instantly share code, notes, and snippets.

@aahnik
Created July 17, 2020 05:20
Show Gist options
  • Save aahnik/e69cf6e80b8136db9ed9e9e02dfd0442 to your computer and use it in GitHub Desktop.
Save aahnik/e69cf6e80b8136db9ed9e9e02dfd0442 to your computer and use it in GitHub Desktop.
def power(a,b):
if b == 0:
return 1
else:
return power(a,b-1) * a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment