Customer segmentation pattern
📖 Scenario: You work for a small online store. You want to group customers based on how much they spent last month. This helps the store send special offers to big spenders and thank smaller spenders.
🎯 Goal: Build a simple program that groups customers into 'High spender' and 'Low spender' based on their spending amount.
📋 What You'll Learn
Create a dictionary with customer names and their spending amounts.
Set a spending threshold to separate high and low spenders.
Use a dictionary comprehension to create a new dictionary with customer names and their segment ('High spender' or 'Low spender').
Print the final segmentation dictionary.
💡 Why This Matters
🌍 Real World
Stores and businesses often group customers by spending to target marketing and rewards effectively.
💼 Career
Data analysts and marketers use customer segmentation to improve sales strategies and customer satisfaction.
Progress0 / 4 steps