-
-
Save codecademydev/cd9dbf7ce64e0ba72725ba54572a0d10 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
def shipping_cost_ground(weight): | |
if weight <= 2 : | |
price_per_pound = 1.50 | |
elif weight <= 6 : | |
price_per_pound = 3 | |
elif weight <= 10 : | |
price_per_pound : 4 | |
else: | |
price_per_pound : 4.75 | |
return 20 + (price_per_pound * weight) | |
print(shipping_cost_ground(8.4)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment