### How to Fix: 'numpy.float64' object cannot be interpreted as an integer ...

###### import numpy as np #define array of values data = np. array ([3.3, 4.2, 5.1, 7.7, 10.8, 11.4]) #use for loop to print out range of values at each index for i in range(len(data)): print (range(data[i])) TypeError: 'numpy.float64' object cannot be interpreted as an integer