Task status monitoring
📖 Scenario: You are building a simple program to monitor the status of tasks in a project. Each task has a name and a status like 'pending', 'in progress', or 'done'. You want to create a small program that keeps track of tasks and shows how many tasks are done.
🎯 Goal: Build a program that stores tasks in a dictionary, sets a status filter, counts how many tasks are done, and displays the count.
📋 What You'll Learn
Create a dictionary called
tasks with exact task names and statusesCreate a variable called
status_filter with the value 'done'Use a list comprehension to create a list of tasks with status matching
status_filterPrint the count of tasks that are done
💡 Why This Matters
🌍 Real World
Monitoring task statuses helps teams track progress and identify completed work quickly.
💼 Career
Understanding how to filter and count tasks is useful for building dashboards and status reports in DevOps and project management roles.
Progress0 / 4 steps