0
0
SCADA systemsdevops~15 mins

Batch reporting in SCADA systems - Mini Project: Build & Apply

Choose your learning style9 modes available
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 values
Create 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_status
Print 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
1
Create the batch data
Create a dictionary called batches with these exact entries: 'B001': 'Passed', 'B002': 'Failed', 'B003': 'Passed', 'B004': 'Failed', 'B005': 'Passed'
SCADA systems
Need a hint?

Use curly braces to create a dictionary. Each entry has a batch ID as a string key and a status string as value.

2
Set the passed status variable
Create a variable called passed_status and set it to the string 'Passed'
SCADA systems
Need a hint?

Use a simple assignment to create the variable.

3
Filter batches that passed
Use a dictionary comprehension to create a new dictionary called passed_batches that contains only the batches from batches where the status equals passed_status
SCADA systems
Need a hint?

Use {key: value for key, value in dict.items() if condition} syntax.

4
Print the passed batches report
Print the passed_batches dictionary to display the batches that passed quality checks
SCADA systems
Need a hint?

Use print(passed_batches) to show the filtered dictionary.