Complete the code to define an alarm threshold in a SCADA system.
alarm_threshold = [1]The alarm threshold is set to 50 to trigger alerts when values exceed this limit.
Complete the code to check if the sensor value exceeds the alarm threshold.
if sensor_value [1] alarm_threshold:
The condition checks if the sensor value is greater than the alarm threshold to trigger an alarm.
Fix the error in the alarm notification function call.
send_alarm_notification([1])The function should send the current sensor value that triggered the alarm, not the threshold or function names.
Fill both blanks to create a dictionary that maps alarm names to their severity levels.
alarms = { [1]: [2] }The dictionary maps the alarm name 'HighTemp' to its severity level 'Critical'.
Fill all three blanks to filter alarms with severity 'Critical' and create a list of their names.
critical_alarms = [[1] for [2], [3] in alarms.items() if [4] == 'Critical']
This list comprehension extracts alarm names where the severity is 'Critical' from the alarms dictionary.