Challenge: Weekly Habit Tracker
Taak
Swipe to start coding
Write a function that summarizes a daily habit tracked over a week. The function should process a list of daily values representing the habit's occurrences for each day of the week.
- Calculate the sum of all values in
daily_values. - Calculate the average of the values in
daily_values. - Print the weekly total.
- Print the weekly average.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 5
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Geweldig!
Completion tarief verbeterd naar 5.56
Challenge: Weekly Habit Tracker
Veeg om het menu te tonen
Taak
Swipe to start coding
Write a function that summarizes a daily habit tracked over a week. The function should process a list of daily values representing the habit's occurrences for each day of the week.
- Calculate the sum of all values in
daily_values. - Calculate the average of the values in
daily_values. - Print the weekly total.
- Print the weekly average.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 5
single