5 ms·
If your working with integers, 1 div 3 is indeed zero.
by Dilpil 18y ago
If your working with integers, 1 div 3 is indeed zero.
- Zaak 18y agoThat makes sense in a language like C, but in Python there's no telling if you've got integers or floats at the point the division happens. I'm very happy it's fixed in Python 3.