Here is the final code for the last task on the lesson. Can someone explain or point me to a resource on the section of the code that uses %? What does this mean?
Any guidance will help!
ground = ground_shipping(weight)
drone = drone_shipping(weight)
premium = premium_shipping
if ground < premium and ground < drone:
method = “Standand Ground”
cost = ground
elif premium < ground and premium < drone:
method = “Premium Ground”
cost = premium
method = “Drone Delivery”
cost = drone
“The cheapest option available is $%.2f with %s shipping.” % (cost, method))