Sal's Project: Name Error

I reached the end of the video tutorial and have been struggling with being able to input the separate variables for shipping because it continues to result in:

Traceback (most recent call last):
File “”, line 24, in
ground = ground_shipping_cost(weight)
NameError: name ‘weight’ is not defined

I took a slightly different path than the video tutorial but until now it produced the same results. I’m not sure where to define weight though in order to be able to plug it into the final print function.

when calling the function:

ground = ground_shipping_cost(weight)

you should pass the actual weight, for example 5kg:

ground = ground_shipping_cost(5)

which will calculate the cost of shipping of a 5kg package.