Challenge: Simple Expense Analyzer
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Fantastiskt!
Completion betyg förbättrat till 5.56
Challenge: Simple Expense Analyzer
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 5
single