-
-
Save codecademydev/f387df84afc5e8ed33f15c40b481cff5 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 cost_of_ground_shp(weight): | |
flat_charge = 20 | |
if weight <= 2: | |
return (1.50 * weight) + flat_charge | |
elif weight > 2 or weight <= 6: | |
return (3.00 * weight) + flat_charge | |
elif weight > 6 or weight <= 10: | |
return (4.00 * weight) + flat_charge | |
elif weight > 10: | |
return (4.75 * weight) + flat_charge | |
print(cost_of_ground_shp(8.0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment