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.

https://www.codecademy.com/paths/computer-science/tracks/cspath-flow-data-iteration/modules/dspath-control-flow/projects/sals-shipping

Thank you,
Ash

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.

2 Likes

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.

2 Likes