Sectionย 2. Chapterย 3
single
Challenge: Debugging and Improving a Hydration Reminder Code
Swipe to show menu
Task
Swipe to start coding
Your task is to debug and improve the code using if-else statements to provide the correct feedback for the user.
- Use an
elsestatement whenwater_intakeis less thandaily_goal. - Ensure that the
elsestatement does not include a condition, as it automatically covers all remaining cases.
Solution
Everything was clear?
Thanks for your feedback!
Sectionย 2. Chapterย 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat