0
2**5 how this operation works ?
answer is 32 I don't understand...
8 Answers
+ 2
As you can read in the documentation: https://docs.python.org/2/library/operator.html
the ** operator is the power operator. This means 2*2*2*2*2 = 32
+ 2
2 to the power 5 ie 2Ă2Ă2Ă2Ă2=32
+ 1
** stands for power
+ 1
2**5 == 2^5
ie 2*2*2*2*2
ie 32
+ 1
** will be treated as a power function.
Meaning 2^5 in your case which yields 32.
0
I is basically telling the computer that you want it to solve a power
0
it is operator for power insted of using math library
0
thank you