Skip to content

Calculate Power

Andrew Burke edited this page Apr 3, 2024 · 5 revisions
def power(base, exponent):
	total = base
	for i in range(1, exponent + 1):
		total = total * base
	
Clone this wiki locally