Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A company recorded the monthly sales data (in thousands) for a year. The sales data for each month is as follows: [30, 45, 60,
A company recorded the monthly sales data (in thousands) for a year. The sales data for each month is as follows: [30, 45, 60, 55, 70, 65, 80, 75, 90, 85, 100, 95]. Calculate the average monthly sales for the year. Exercise 2: A company is analyzing its quarterly expenses. The expenses for each quarter (in thousands) are stored in a list: [120, 150, 110, 140]. Calculate the total expenses for the year. Exercise 3: A store maintains a dictionary where keys represent product names and values represent their prices. Calculate the total value of all products in the store. apple price is $1.2, banana price is $0.8, orange price is $1.0, grapes price is $2.5. Exercise 4: A company has sales data stored in a dictionary. Calculate the average monthly sales based on the sales data. "January": 30000, "February": 45000, "March": 60000, "April": 55000, "May": 70000, "June": 65000, "July": 80000, "August": 75000, 3:11 Search 2 of 2 ardcdn.com "September": 90000, "October": 85000, "November": 100000, "December": 95000 214 Exercise 5: A company stores sales data as a string where each sale is separated by a semicolon. Convert the sales data string into a list of individual sales. Example: "30000;45000;60000;55000;70000" Exercise 6: A company records quarterly profits. Store the quarterly profits in a tuple and find the maximum profit. Example: (120000, 150000, 110000, 140000) Exercise 7: a) Define the variable 'a' as a list (4, 3, 10, -20). Print the list. b) Sort variable 'a' in increasing order. c) Create the list 'b' with numbers from 10 to 45 using range(). d) Create the variable 'c', which is the reverse of 'b' (from 45 to 10). e) Create the list 'd' with numbers from 10 to 45 by 5 using range(). Exercise 8: a) Determine the class of 'b' from the previous exercise? Convert 'b' into a character. b) Can you spot the difference: Which of these are character strings and which are numbers? 1, "1", "one". c) Create a list 'Mixed' containing the following mixed elements (4, "e", 5,"h") and find out its class. G 22 22
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started