-
-
Save codecademydev/801caa81a6011d5c83cb8501db6904b6 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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