Sals Shipping Project - Python

Hi, I know there is a MUCH more efficient to write this code (I’ve noticed from the solution)
However I seem to get an error message (see pic below) and I havent figured out why it’s giving me the error.

NoneType means the absence of a return value, weight is 4.8, which isn’t smaller then 2, thus no condition within d_ship will evaluate to true

why do you have the same conditional check multiple times in d_ship function?

1 Like