- 1
the division operator should result the float value the same operator should run in both the division operator should result the float value the same operator should run in both python version 3 and 2.7
in python 3 and 2.7 the common division operator is // but this returns the interger value, which common division operator returns float value
1 Antwort
+ 1
In Python 3.x, the // operator is for floor division. You can use the / operator for true division.