Challenge: Simple Expense Analyzer
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Simple Expense Analyzer
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 5
single