Complete the code to assign the correct bug severity level.
bug_severity = "[1]" # This bug causes the system to crash
The bug causes the system to crash, so its severity is Critical.
Complete the code to assign the correct bug priority level.
bug_priority = "[1]" # This bug should be fixed before the next release
The bug must be fixed before the next release, so its priority is High.
Fix the error in the code to correctly check if a bug is both critical and high priority.
if bug_severity == "[1]" and bug_priority == "High": print("Fix immediately")
The severity must be checked as Critical to match the condition for immediate fix.
Fill both blanks to create a dictionary mapping bug severity to priority.
bug_map = {"Critical": "[1]", "Minor": "[2]"}Critical bugs usually have High priority, while Minor bugs often have Low priority.
Fill all three blanks to filter bugs with severity Critical and priority High.
filtered_bugs = [bug for bug in bugs if bug['severity'] == '[1]' and bug['priority'] == '[2]' and bug['status'] == '[3]']
We filter bugs that are Critical severity, High priority, and currently Open to fix them first.