0

If print(9**1/2), the output is 4.5 and print(9**(1/2)), the output is 3.0. HOW?

Why both are not same output.

14th Aug 2022, 1:03 PM
Suraj
Suraj - avatar
1 Respuesta
+ 4
D. World parenthesis ( ) has more preference so 9**(1/2) = 9**0.5 = 3.0 9**1/2 = 9 / 2 = 4.5 9**1/2 is like (9**1) / 2
14th Aug 2022, 1:10 PM
A͢J
A͢J - avatar