Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created April 2, 2021 18:42
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/be4993cf6549c238eac0214499fb70db to your computer and use it in GitHub Desktop.
Save codecademydev/be4993cf6549c238eac0214499fb70db to your computer and use it in GitHub Desktop.
Codecademy export
weight = 8.4
# Ground shipping
if weight <= 2:
price_per_pound = 1.50
if weight <= 6 :
price_per_pound = 3.00
if weight <= 10 :
price_per_pound = 4.00
else:
price_per_pound = 4.75
print (price_per_pound * weight + 20)
# Ground shipping Premium
ground_shipping_premium = 125.00
print ("Ground Shipping premium " ,ground_shipping_premium)
# Drone Shipping
weight = 1.5
if weight <= 2:
cost_of_drone = 4.50
if weight <= 6 :
cost_of_drone= 9.00
if weight <= 10 :
cost_of_drone= 12.00
else:
cost_of_drone = 14.25
print (cost_of_drone * weight)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment