TypeError: ‘numpy.float64’ object is not callable?

You can’t use the same variable name for a function and a float (in the same namespace). And you both defined a bear function and a bear variable pointing to a float. You need to change one of the two names.

Leave a Comment