Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Simple Expense Analyzer | Organizing and Summarizing Data
Python for Daily Tasks
SectionΒ 2. ChapterΒ 5
single

single

bookChallenge: 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 expenses list and store it in total.
  • Calculate the average of the values in the expenses list and store it in average.
  • Find the highest value in the expenses list and store it in highest.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt