Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created February 13, 2021 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/801caa81a6011d5c83cb8501db6904b6 to your computer and use it in GitHub Desktop.
Save codecademydev/801caa81a6011d5c83cb8501db6904b6 to your computer and use it in GitHub Desktop.
Codecademy export
weight = 25
#Ground Shipping
if weight <= 2:
cost_ground = weight * 1.50 + 20
print(cost_ground)
elif weight <= 6:
cost_ground = weight * 3.00 + 20
print(cost_ground)
elif weight <= 10:
cost_ground = weight * 4.00 + 20
print(cost_ground)
elif weight > 10:
cost_ground = weight * 4.75 + 20
print(cost_ground)
premium_ground_shipping = 125.00
print(premium_ground_shipping)
#Drone Shipping
if weight <= 2:
cost_drone = weight * 4.50
print(cost_drone)
elif weight <= 6:
cost_drone = weight * 9.00
print(cost_drone)
elif weight <= 10:
cost_drone = weight * 12.00
print(cost_drone)
elif weight > 10:
cost_drone = weight * 14.25
print(cost_drone)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment