Created
July 17, 2020 05:20
-
-
Save aahnik/e69cf6e80b8136db9ed9e9e02dfd0442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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