If print(9**1/2), the output is 4.5 and print(9**(1/2)), the output is 3.0. HOW? | Sololearn: Learn to code for FREE!

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.

8/14/2022 1:03:54 PM

Suraj

1 Answer

New Answer

+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