def vol_sphere(rad):
radf=float(rad)
return (int(str(4.0/3)*(3.14)(radf**3)))
OUTPUT
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-23740cf5751c> in <module>
----> 1 vol_sphere(2.3)
<ipython-input-17-e9beec0fa42c> in vol_sphere(rad)
1 def vol_sphere(rad):
2 radf=float(rad)
----> 3 return (int(str(4.0/3)*(3.14)(radf**3)))
TypeError: 'float' object is not callable