In Python 2.3, range() cares that it was passed integer types, so pass
an integer to avoid an unhelpful deprecation warning. (Before Python 2.3, range() and many other built-in functions accepted floats as ints "by accident"; those cases now generate warnings when passes a float.)
Showing
Please register or sign in to comment