EXCEPTION: TypeError: 'float' object cannot be interpreted as an integer on line 1