Complete the code to set the drone's speed to 10 meters per second.
drone.speed = [1]The drone's speed should be set to the number 10 to represent 10 meters per second.
Complete the code to make the drone fly to the coordinates (50, 100).
drone.fly_to([1], 100)
The drone needs to fly to x-coordinate 50 and y-coordinate 100. The first argument is 50.
Fix the error in the code to check if the drone's battery is above 20%.
if drone.battery [1] 20:
To check if the battery is above 20%, use the greater than symbol >.
Fill both blanks to create a dictionary of package weights for delivery.
package_weights = { [1]: 5, [2]: 3 }The dictionary keys should be package names like 'package1' and 'package2'.
Fill all three blanks to create a dictionary of deliveries with package names, weights, and a condition for heavy packages.
deliveries = { [1]: [2] for [3] in packages if packages[[3]] > 4 }The dictionary comprehension uses 'package' as key, 'weight' as value, and 'pkg' as the loop variable.