def exp(n, p): if p == 0: return 1 return n * exp(n, p - 1) base = float(input("Base? ")) power = int(input("Exponent? ")) print(exp(base, power))