+ 2

Help

What is the output of 5 raised to the 3rd power

16th Nov 2020, 7:51 PM
Jada Carroll
Jada Carroll - avatar
1 Answer
0
Hello Jada, This might help you. Python has three ways to exponentiate values: The ** operator. To program 25 we do 2 ** 5. The built-in pow() function. 23 coded becomes pow(2, 3). The math.pow() function. To calculate 35, we do math.pow(3, 5). Since each approach gives the right answer, feel free to pick any. If you aren't sure, use pow() if you need an integer outcome and math.pow() for a floating-point result. Don't Forget to follow me and read more at this link https://kodify.net/python/math/exponents/
14th Dec 2020, 7:35 AM
Success Ours
Success Ours - avatar