+ 1

How do i solve this

>>> 2**5 32 >>> 9 ** (1/2) 3.0 How does the 2 asteriks works?

16th Feb 2020, 8:16 AM
John Allen
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
16th Feb 2020, 8:19 AM
A͢J
A͢J - avatar
+ 2
2 asteriks is exponential operator in maths 2**4 is same as 2^4 or 2⁴ :- 2**4 = 2*2*2*2 = 16
16th Feb 2020, 8:21 AM
Arsenic
Arsenic - avatar
+ 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
16th Feb 2020, 8:40 AM
A͢J
A͢J - avatar
0
I still don't get this: same for 9 ** (1/2) = 9^(1/2) = 9^0.5 = 3.0
16th Feb 2020, 8:26 AM
John Allen