LearnPy Hub
← Recursion & Lambda problems
Easy

Recursive Power

Write a recursive power(b, e) for e ≥ 0 without using **.

Input

Two integers b and e.

Output

b^e

Sample 1

Input
2
10
Output
1024

Sample 2

Input
5
0
Output
1
solution.py
Output appears here
Recursive Power · Python practice problem · LearnPy Hub