+ 1
9**(1/2)
it shows answer as 1
3 Answers
+ 14
In this question answer is 1 everywhere. (Math, programming)
1^0=2^0=3^0=...=1
+ 7
In Python v2, 1/2 evaluates to 0, because it's meant to be the integer division. Thus, 9**(1/2) = 9**0 = 1
In Python v3, 1/2 evaluates to 0.5, and 9**0.5=3.0
+ 2
In python ( and in some other languages) 1/2 equals 0 . This is beacuse it truncates the true result
1/2 = 0.5 , but in python (truncate) 1/2=0
similarly ,in python , 5/2 = 2