Complete the code to set the drone's pitch angle.
drone.set_pitch([1])The pitch angle is set by a numeric value representing degrees. Here, 30 degrees is a valid pitch angle.
Complete the code to check if the drone's altitude is above 100 meters.
if drone.altitude [1] 100:
The '>' operator checks if the altitude is greater than 100 meters.
Fix the error in the code to correctly calculate the drone's velocity.
velocity = drone.distance [1] drone.timeVelocity is distance divided by time, so '/' is the correct operator.
Fill both blanks to create a dictionary of drone speeds for different modes.
speeds = { 'hover': [1], 'cruise': [2] }Hover speed is 0 (stationary), cruise speed is 10 units.
Fill all three blanks to filter and map drone data based on altitude.
filtered_data = { [1]: [1].[2] for [1] in data if [1].[2] > 50 }We use 'drone_id' as the key and loop variable, 'drone_id.altitude' as the value, and iterate over 'data' items. The condition checks drone_id.altitude > 50.
