def ground_ship(weight):
if weight > 10:
heavy = weight * 4.75 + 20.00
return print("Your price is " + str(heavy) + “.")
elif weight >= 6:
medium_heavy = weight * 4.00 + 20.00
return print("Your price is " + str(medium_heavy) + "0.”)
elif weight > 2:
light_medium = weight * 3.00 + 20.00
return print("Your price is " + str(light_medium) + “0$.”)
elif weight <= 2:
light = weight * 1.50 + 20.00
return print("Your price is " + str(light) + “0$.”)
premium_ground_shipping = “125.00$”
def drone_ship(weight):
if weight > 10:
heavy = weight * 14.25
return print("Your price is " + str(heavy) + “.")
elif weight >= 6:
medium_heavy = weight * 12.00
return print("Your price is " + str(medium_heavy) + "0.”)
elif weight > 2:
light_medium = weight * 9.00
return print("Your price is " + str(light_medium) + “0$.”)
elif weight <= 2:
light = weight * 4.50
return print("Your price is " + str(light) + “0$.”)
def price_check(weight):
drone = drone_ship
ground = ground_ship
premium = premium_ground_shipping
if drone < ground and drone < premium:
return “Drone delivery is your best option” + str(drone_ship)
elif ground < drone and ground < premium:
return “Ground delivery is your best option” + str(ground_ship)
elif premium < ground and premium < drone:
return “Premium delivery is your best option” + str(premium_ground_shipping)
print(price_check(4.8))