LearnPy Hub
← Functions problems
Medium

Keyword Arguments

Write power(base, exp=2). Read base and exp; if exp is 0 on input, call power(base), otherwise call power(exp=exp, base=base). Print the result.

Input

Two integers.

Output

The power.

Sample 1

Input
5
0
Output
25

Sample 2

Input
2
10
Output
1024
solution.py
Output appears here
Keyword Arguments · Python practice problem · LearnPy Hub