We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967e5b9 commit 6c34dabCopy full SHA for 6c34dab
Python_Begginer_Projects/Amazing/pow_solver.py
@@ -0,0 +1,7 @@
1
+def power (base, exp):
2
+ if exp == 0:
3
+ return 1
4
+ return base * power(base, exp - 1)
5
+base = int(input("Enter the base number: "))
6
+exp = int(input("Enter the exponent: "))
7
+print (power (base, exp))
0 commit comments