Batch Reporting
📖 Scenario: You work in a factory using a SCADA system to monitor production batches. Each batch has a unique ID and a status indicating if it passed quality checks.Your manager wants a quick report showing which batches passed.
🎯 Goal: Create a batch report that lists only the batch IDs that passed quality checks.
📋 What You'll Learn
Create a dictionary called
batches with batch IDs as keys and status strings as valuesCreate a variable called
passed_status with the value 'Passed'Use a dictionary comprehension to create a new dictionary
passed_batches containing only batches with status equal to passed_statusPrint the
passed_batches dictionary💡 Why This Matters
🌍 Real World
Factories use SCADA systems to monitor production batches and quickly identify which batches passed quality checks for reporting and decision-making.
💼 Career
DevOps and automation engineers often write scripts to process and report system data, helping teams monitor production and maintain quality.
Progress0 / 4 steps