Complete the code to start the drone's spraying system.
drone.[1]()The startSpraying() method activates the drone's spraying system to begin applying pesticides or fertilizers.
Complete the code to check the drone's battery level before spraying.
if drone.getBatteryLevel() [1] 20: drone.returnToBase()
The drone should return to base if the battery level is less than or equal to 20% to avoid running out of power during spraying.
Fix the error in the code to correctly log the spray area coverage.
coverage = drone.getSprayArea() print('Coverage:', coverage[1]'%')
The plus sign + concatenates the coverage value with the percent sign to form a complete string.
Fill both blanks to create a dictionary of field zones with their spray status.
zones_status = {zone: drone.[1](zone) for zone in field_zones if drone.[2](zone)}isSprayed(zone) checks if a zone has been sprayed, and checkSprayed(zone) returns the spray status for the zone.
Fill all three blanks to create a filtered dictionary of zones needing spraying with their moisture levels.
zones_to_spray = {zone[1]: drone.[2](zone) for zone in field_zones if drone.[3](zone) < 30}The dictionary keys are zone names converted to uppercase (.upper()), the values are moisture levels from getMoistureLevel(zone), and the filter selects zones with moisture below 30.