Sal's Shipping Project Troubles

Hi @kgnunn999,

The extra None is not your fault. Due the to manner in which Codecademy handles submitted code for this exercise, the return value of the cheapest_shipping function gets displayed. Since we have not explicitly supplied a return value, it defaults to None.

You could add a return statement as the final line in the function. Try this as an example, making sure it is indented appropriately to be part of the function, but not part of the else block …

  return "Thanks for choosing Sal's Shipping!"

You could do this instead …

  return cost
2 Likes