Question: We analyze customer data to segment them based on their spending habits over four quarters of the year. Customers are categorized as High - Spenders,
We analyze customer data to segment them based on their spending habits over four quarters of the year. Customers are categorized as HighSpenders, MediumSpenders, or LowSpenders based on their total yearly spending
HighSpenders: Total yearly spending
MediumSpenders: Total yearly spending between and
LowSpenders: Total yearly spending
Given a list of customers' spending in each quarter, write a program that:
Calculates the total yearly spending for each customer. Assigns each customer to the correct segment based on their total yearly spending. Prints the customer name and their corresponding segment.
Customer data is defined in list of dictionaries.
customers
name: 'Alice', Q: Q: Q: Q:
name: 'Bob', Q: Q: Q: Q:
name: 'Charlie', Q: Q: Q: Q:
Write a python program for this
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
