0
What does ** mean?
Print (5**5) Gives me 3125 what's is the ** doing?
4 Réponses
+ 8
It's an exponent/power operator.
5**5 = 5 × 5 × 5 × 5 × 5 = 3125
+ 8
Please refer 9.2.2. Power and logarithmic functions :
https://docs.python.org/2/library/math.html
+ 6
5^5
+ 5
5**2; ** will raise power 2 to the 5 i.e. 5^2 = 25