+ 1
How the output is 3.0
print(9**(1/2))
3 odpowiedzi
+ 6
** # for square root
(9 ** (1/2)) = 9 in the power of 1/2.
Any number in the power of 1/2 is equal with its square root.
√9=3 so (9**(1/2))= 3
Hope this helps 🙂
(please write your language also when you make a question to help those who want to help you. I suppose that this code is written in python.)
0
** is used for calculate power.
Ex: 2 power 3 =2*2*2=8
(1/2) power for Squire root,
(1/3) power means cube root..
So 9**(1/2)=3.0
8**(1/3)=2.0
0
In addition to the other posts, when you calculate with fractional exponents in Python, the result is a float, so you get 3.0 rather than just 3.