Sal's Shipping TypeError: 'int' object is not callable

Hi there,

I am getting the “TypeError: ‘int’ object is not callable” error in the Sal’s Shipping exercise. What am I doing wrong? Any help will be appreciated.

Thank you,

Search through your code and see if a value is being treated as a function call.

Check line 15. The object is an integer. In line 34 that variable is being treated as a function call with argument, weight.


Yep that is it. Thank you so much. I was treating the cost_of_premium_ground_shipping as a function in line 35 though it is a variable. Thank you so much for all your help mtf. I appreciate it.


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.