Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
One possible program:
base = int(input("base: "))
exp = int(input("exponent (>=0): "))
result = 1
for repeat in range(exp):
result *= base
print(result)