Question: Crazy Monkey is a recent startup started by the 3 friends from IIT Delhi. The company deals with apparel and trending millennium clothing and accessories.
Crazy Monkey is a recent startup started by the friends from IIT Delhi. The company deals with apparel and trending millennium clothing and accessories.
The company wants to expand across India through an online web market and various offline stores. Still, before taking this step, they wanted to be double sure regarding the demand and the sector they should target. The company has a limited cash reserve and they want to utilize it in the best possible way.
The company has hired you as an External Data Analyst and wanted you to help them with the following questions:
You are given a dictionary that consists of various orders that were placed. Each order consists of the customerid as the key of the dictionary with the values consisting of another dictionary. For each customer, you have been provided with the details of the customer in a dictionary with the name of the customer, email, phone number, and the product ordered by the customerin a list with the product code
Orders Dictionary
orders U:name:'Sumit Shukla', 'email':ss@gmail.com', 'phone': 'product':pppU:name:'Ajay', 'email':aj@gmail.com', 'phone': 'product':pppU:name:'Vijay', 'email':vj@gmail.com', 'phone': 'product':pppU:name:'Rahul', 'email':rhgmail.com', 'phone': 'product':pppU:name:'Shree', 'email':'shree@gmail.com', 'phone': 'product':pppU:name:'shivani', 'email':'shivani@gmail', 'phone': 'product':pppU:name:'vidhya', 'email':vi@hotmail.com', 'phone': 'product':pppU:name:'jaya', 'email':jm@gmail.com', 'phone': 'product':pppU:name:'ojas', 'email':ojcom', 'phone': 'product':pppU:name:'anil', 'email':an@gmail.com', 'phone': 'product':ppp
Perproductcost Dictionary
pp p:p:p:p:p:
Questions
Find the number of customers in the orders dictionary. Marks
Find the number of unique productsproduct code that we ordered. Marks
Each email is defined in the following format username@hostname.com, find the customer ids for which the email address was in the wrong format. Marks
Each phone number is considered valid if it has digits. find the customer ids that have invalid phone numbers. Note: In order to skip filling up the details, some customers have used for times as their phone number. These phone numbers are also considered invalid. Marks
Which customer has provided both email and phone number as wrong? noncode Marks
Find the count of orders for each productid Create a dictionary with the productid as the key and the number of times the product was ordered. Marks
Use the dictionary created in the last question to find the productid which was ordered the maximum number of times. Marks
You are given the perproductcost dictionary with the cost of each product. Find the total revenue generated by the company. Marks
Create a dictionary with the customerid and total cost ordered by the customer. Marks
Find the customerid with the minimum order value. Marks
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
