Python3 integer division

In Python3 vs Python2.6, I noticed that I can split two integers and get a float. How do you return the behavior of Python2.6? Is there any other way to get int / int = int?

+76
python division
Oct 22 '13 at 2:01
source share
1 answer

Try the following:

a = 1 b = 2 int_div = a // b 
+106
Oct 22 '13 at 2:08 on
source share



All Articles