Pre-flight checklist automation
📖 Scenario: You are preparing a drone for flight. To ensure safety, you need to check several important systems before takeoff. Automating this checklist helps avoid mistakes and saves time.
🎯 Goal: Build a simple program that stores the drone's system checks, sets a threshold for passing, filters which checks passed, and then displays the final list of passed checks.
📋 What You'll Learn
Create a dictionary called
system_checks with exact keys and values for system names and their status scoresCreate a variable called
pass_threshold with the exact value 75Use a dictionary comprehension called
passed_checks to include only systems with scores greater than or equal to pass_thresholdPrint the
passed_checks dictionary exactly as shown💡 Why This Matters
🌍 Real World
Automating pre-flight checks helps drone operators quickly verify that all important systems are ready, improving safety and efficiency.
💼 Career
Knowledge of filtering data and using dictionary comprehensions is useful for software developers working on automation, robotics, or embedded systems.
Progress0 / 4 steps