+ 1
How do i solve this
>>> 2**5 32 >>> 9 ** (1/2) 3.0 How does the 2 asteriks works?
4 Answers
+ 2
Here 2 asterisks mean y(5) is the power of x(2) like x^y = 2^5 = 2 * 2 * 2 * 2 * 2 = 32
same for 9 ** (1/2)
= 9^(1/2)
= 9^0.5
= 3.0
+ 2
2 asteriks is exponential operator in maths
2**4 is same as 2^4 or 2â´ :-
2**4 = 2*2*2*2 = 16
+ 2
John Allen Here 1/2 means square root.
So 9**(1/2) = 3.0 (actually it's 3 but in Python it's 3.0)
check note in second section here:-
https://www.sololearn.com/learn/Python/2272/
Check this math calculation to understand what is square and square root.
https://www.mathsisfun.com/square-root.html
0
I still don't get this:
same for 9 ** (1/2)
= 9^(1/2)
= 9^0.5
= 3.0