0
How does exponentiation work
how does exponentiation work
2 Answers
+ 2
You can use math.pow( num1, num2) or num1**num2 in python.
x = 4**5
x = 4 * 4 * 4 * 4 * 4
x = 1024
# x = math.pow(4, 5) would give the same result, but with a decimal 1024.0
# don't forget to import math
+ 1
Ohh exponent mean 4^5