Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python calculate the power of number

base = 3
exponent = 4

result = 1

for exponent in range(exponent, 0, -1):
    result *= base

print("Answer = " + str(result))
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #calculate #power #number
ADD COMMENT
Topic
Name
9+9 =