python – TypeError: ‘float’ object is not iterable


x = (success_estimates('Jamaica'))
for i in x:
    print(' c ')
    z=i**2
    sum((a) for a in z)


..>

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-228-af93bd0f165f> in <module>
      3     print(' c ')
      4     z=i**2
----> 5     sum((a) for a in z)

TypeError: 'float' object is not iterable