In Python 3 there is no integer division like there was in Python 2. All division is float division so even 4 / 4 will return 1.0. Floats cannot be used as indexes.
It’s really a matter of what the end result of any numeric computation will be used for. If it is going to be an index, then it must be an integer. The same would apply if the computed value is going to be used in a range(). With time we learn about the arguments and parameters of various functions and methods which helps us to decide when to use integers.