Aggregation functions (sum, mean, count)
📖 Scenario: You work in a small store and want to analyze daily sales data to understand how much money you made, the average sale amount, and how many sales you had.
🎯 Goal: Build a simple Python program that uses aggregation functions sum, mean, and count to analyze sales data stored in a list.
📋 What You'll Learn
Create a list of sales amounts
Create a variable to count the number of sales
Calculate the total sales using
sumCalculate the average sale amount using
meanPrint the total sales, average sale, and count of sales
💡 Why This Matters
🌍 Real World
Stores and businesses often analyze sales data to understand performance and make decisions.
💼 Career
Data analysts use aggregation functions like sum, mean, and count to summarize data quickly and clearly.
Progress0 / 4 steps