Complete the code to start the drone simulation.
simulation.[1]()The start() method begins the drone simulation, allowing you to test flight without risk.
Complete the code to check if the drone has crashed in simulation.
if drone.[1] == True: print('Crash detected!')
The has_crashed property tells if the drone crashed during simulation.
Fix the error in the code to safely land the drone after simulation.
drone.[1]()The land() method safely lands the drone to avoid crashes.
Fill both blanks to create a dictionary of drone status with battery and altitude.
status = {'battery': drone.[1], 'altitude': drone.[2]battery_percentage gives battery status, and altitude_meters gives altitude in meters.
Fill all three blanks to filter sensor data for values above threshold.
filtered = {sensor: value for sensor, value in data.items() if value [1] threshold and sensor [2] 'temp' and value [3] 0}We filter values less than threshold (<), sensors not equal to 'temp' (!=), and values greater or equal to zero (>=).