**Solution :**

Please note the **range()** can only work with integers but the dividing with / operator will always results in a float value:

e.g.

>>> 450 / 10
45.0
>>> range(450 / 10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'float' object cannot be interpreted as an integer

So please make the value an integer again by following method:

for i in range(int(c / 10)):

or you can use the // floor division operator:

for i in range(c // 10):