Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Progress Tracker | Python if-elif-else Statement
Conditional Statements in Python
course content

Course Content

Conditional Statements in Python

Conditional Statements in Python

1. Python if Statement
2. Python if-else Statement
3. Python if-elif-else Statement

book
Challenge: Progress Tracker

Task
test

Swipe to begin your solution

You're building a fitness challenge tracker for a user, and the program should monitor their progress toward a weekly fitness challenge. Based on the user's total exercise time, categorize their effort into one of the following zones:

  • Super Achiever: if the user completes more than 10 hours of exercise this week.
  • Hard Worker: if the user completes between 6 and 10 hours of exercise.
  • Getting There: if the user completes between 3 and 6 hours of exercise.
  • Needs Improvement: if the user completes less than 3 hours of exercise.

Write the program that checks the total exercise time and gives the user appropriate feedback based on these categories.

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 3. Chapter 4
toggle bottom row

book
Challenge: Progress Tracker

Task
test

Swipe to begin your solution

You're building a fitness challenge tracker for a user, and the program should monitor their progress toward a weekly fitness challenge. Based on the user's total exercise time, categorize their effort into one of the following zones:

  • Super Achiever: if the user completes more than 10 hours of exercise this week.
  • Hard Worker: if the user completes between 6 and 10 hours of exercise.
  • Getting There: if the user completes between 3 and 6 hours of exercise.
  • Needs Improvement: if the user completes less than 3 hours of exercise.

Write the program that checks the total exercise time and gives the user appropriate feedback based on these categories.

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 3. Chapter 4
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt