Complete the code to set the maximum altitude limit to 120 meters.
drone.set_max_altitude([1])The maximum altitude is set by passing the value 120 to the set_max_altitude method.
Complete the code to check if the current altitude exceeds the minimum altitude limit of 10 meters.
if drone.current_altitude [1] 10:
The condition checks if the current altitude is greater than 10 meters, meaning it exceeds the minimum altitude limit.
Fix the error in the code to correctly set both minimum and maximum altitude limits.
drone.set_altitude_limits(min=[1], max=120)
The minimum altitude limit should be 0 meters or higher. Negative values like -10 are invalid.
Fill both blanks to create a dictionary of altitude limits with keys 'min' and 'max'.
altitude_limits = {'min': [1], 'max': [2]The minimum altitude is 0 meters and the maximum altitude is 120 meters as per configuration.
Fill all three blanks to filter altitude readings between minimum and maximum limits.
valid_altitudes = [alt for alt in readings if alt [1] min_limit and alt [2] max_limit and alt != [3]]
The code filters altitudes greater than min_limit, less than max_limit, and excludes None values.