Search and Rescue Assistance
📖 Scenario: You are programming a drone to help in search and rescue missions. The drone needs to scan an area and identify locations where people might be trapped. Each location has a signal strength indicating the likelihood of a person being there.
🎯 Goal: Build a program that stores locations with their signal strengths, sets a threshold to decide which locations need rescue, filters those locations, and then prints the list of locations that require immediate attention.
📋 What You'll Learn
Create a dictionary called
locations with exact keys and signal strength valuesCreate a variable called
threshold with the exact value 70Use a dictionary comprehension to create a new dictionary called
rescue_needed with locations having signal strength greater than or equal to thresholdPrint the
rescue_needed dictionary💡 Why This Matters
🌍 Real World
Drones help rescue teams by quickly identifying areas where people might be trapped using signal strengths or sensor data.
💼 Career
Understanding how to filter and process data is essential for programming drones and other autonomous devices in emergency response roles.
Progress0 / 4 steps