2 Antworten
0
Because a float division always results in a float, even if it's a whole number (which in this case it is not, even).
Any subsequent basic maths operation with a float yields a float again.
So...
int/int => float
int**float => float
If you want an int result simply use int( ):
print(int(9**(1/2)))