Financial data analysis pattern
📖 Scenario: You work as a financial analyst. You have a small dataset of monthly sales figures for different products. Your task is to analyze this data to find which products have sales above a certain threshold.
🎯 Goal: Build a simple Python program that stores sales data, sets a sales threshold, filters products with sales above the threshold, and prints the filtered results.
📋 What You'll Learn
Create a dictionary with product names as keys and monthly sales as values.
Create a variable to hold the sales threshold.
Use a dictionary comprehension to filter products with sales above the threshold.
Print the filtered dictionary showing products with sales above the threshold.
💡 Why This Matters
🌍 Real World
Financial analysts often need to filter and analyze sales data to identify top-performing products.
💼 Career
This pattern helps in preparing reports and making data-driven decisions in finance and sales roles.
Progress0 / 4 steps