Risk Monitoring and Control
📖 Scenario: You are part of a software project team. You need to keep track of risks that might affect your project. Each risk has a description and a status showing if it is currently active or resolved.
🎯 Goal: Build a simple program to monitor risks by storing them, setting a threshold for active risks, filtering active risks, and displaying the active risks to help the team focus on important issues.
📋 What You'll Learn
Create a dictionary called
risks with exact risk descriptions as keys and their status ('active' or 'resolved') as values.Create a variable called
active_threshold and set it to the number 2.Use a dictionary comprehension to create a new dictionary called
active_risks that contains only the risks with status 'active'.Print the
active_risks dictionary.💡 Why This Matters
🌍 Real World
In real projects, teams track risks to avoid surprises. This simple program helps monitor which risks need attention.
💼 Career
Understanding how to organize and filter risk data is useful for project managers, DevOps engineers, and software team leads to keep projects on track.
Progress0 / 4 steps