Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python calculate the power of number

base = 3
exponent = 4

result = 1

while exponent != 0:
    result *= base
    exponent-=1

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