Question: Write code using Python satisfying the conditions. Star Mart is a new super market opened near VIT. The marketing team of the super market planned

 Write code using Python satisfying the conditions. Star Mart is a

Write code using Python satisfying the conditions.

Star Mart is a new super market opened near VIT. The marketing team of the super market planned to get customer details to incorporate CRM. Design a Python code for the markting wing to help them analyze their customers. Assume on a day (n) customers opted for CRM. The Python code must perform the following: 1. Fecth the number of customers (n integer) who opted for CRM 2. Fetch customer id integer) and gender (0-male 1-female) for each of the (n) customer. 3. Based on the gender create two sets. A set for customer id of male customers and a set for customer id of female customers. 4. On the same day fetch the number of customers (m) who made high purchase of more that Rs. 2000/- 5. Fetch the customer id of the (m) customers who purchased more than Rs. 2000/-. This customer id could include the customer id of non-CRM customers also. 6. Analyze and display the set of female customers who made high purchase and opted for CRM. Display the set of male customers who made high purchase and opted for CRM. Display the set of high purchase non-CRM customers. Note: CRM stands for Customer Relationship Management

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!