how do i understand exponentiation in python and also the process of it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do i understand exponentiation in python and also the process of it?

please tell me the process to do it

4th Jul 2018, 12:22 AM
Shubhendra Kumar Shaw
Shubhendra Kumar Shaw - avatar
2 Answers
+ 1
In python, try it in your terminal >>> 2 ** 3 = 8 This means: 2 * 2 * 2 = 8
19th Aug 2018, 8:28 AM
Charlie
0
It's the same as in real life, you use ** for exponentation 5**3 = 5 * 5 * 5 = 25*5 = 125
4th Jul 2018, 3:29 AM
Markus Kaleton
Markus Kaleton - avatar