Project

not sure about this project right now
https://www.codecademy.com/paths/computer-science/tracks/cspath-cs-101/modules/cspath-python-control-flow/projects/python-sals-shipping
stuck on the elif code can someone help.

Here’s a possibility for part of the first part:

# Ground Shipping
def ground_shipping_for_weight(weight):
  if (weight <= 2):
    price_per_lb = 1.50
  elif ((weight > 2) and (weight <= 6)):
    price_per_lb = 3.00

although the condition for that elif can be simplified.

The other elif and the else stuff is not written in the code above.
See if you can figure out the rest.

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