Challenge: Simple Expense Analyzer
Task
Swipe to start coding
Write a Python script that uses built-in functions to analyze a list of expenses and prints summary statistics.
- Calculate the sum of all values in the
expenseslist and store it intotal. - Calculate the average of the values in the
expenseslist and store it inaverage. - Find the highest value in the
expenseslist and store it inhighest.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Awesome!
Completion rate improved to 5.56
Challenge: Simple Expense Analyzer
Swipe to show menu
Task
Swipe to start coding
Write a Python script that uses built-in functions to analyze a list of expenses and prints summary statistics.
- Calculate the sum of all values in the
expenseslist and store it intotal. - Calculate the average of the values in the
expenseslist and store it inaverage. - Find the highest value in the
expenseslist and store it inhighest.
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 5
single