Complete the code to check if the drone battery is low.
if battery_level [1] 20: initiate_landing()
The drone should initiate landing when the battery level is less than 20%.
Complete the code to retry connection if signal strength is weak.
if signal_strength [1] 30: retry_connection()
The drone retries connection when signal strength is less than 30.
Fix the error in the failsafe check for obstacle distance.
if obstacle_distance [1] 5: stop_movement()
The drone should stop movement if obstacle distance is less than 5 meters.
Fill both blanks to create a failsafe that checks battery and signal before takeoff.
if battery_level [1] 50 and signal_strength [2] 40: start_takeoff()
The drone starts takeoff only if battery is at least 50 and signal strength is greater than 40.
Fill all three blanks to create a failsafe dictionary filtering sensors with safe readings.
safe_sensors = {sensor: reading for sensor, reading in sensors.items() if reading [1] [2] and reading [3] 100}This dictionary comprehension keeps sensors with readings between 0 and 100 inclusive.
