5.
You want to create a geofence that excludes a small no-fly zone inside a larger allowed area. Which approach correctly sets this using nested geofence boundaries?
# Outer geofence
outer = {'min_lat': 10.0, 'max_lat': 20.0, 'min_lon': 30.0, 'max_lon': 40.0}
# Inner no-fly zone
no_fly = {'min_lat': 14.0, 'max_lat': 16.0, 'min_lon': 34.0, 'max_lon': 36.0}
# Function to check if position is inside a geofence
Which code snippet correctly returns True only if the position is inside the outer geofence but outside the no-fly zone?