Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Workout Duration 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: Workout Duration Tracker

Task
test

Swipe to show code editor

Your fitness tracker tracks the user's workout duration and provides feedback based on how long they've exercised. If the user worked out for more than 60 minutes, congratulate them. If they worked out between 30 and 60 minutes, encourage them to keep up the good work. If they worked out for less than 30 minutes, remind them to extend their workout time next time.

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 2
toggle bottom row

book
Challenge: Workout Duration Tracker

Task
test

Swipe to show code editor

Your fitness tracker tracks the user's workout duration and provides feedback based on how long they've exercised. If the user worked out for more than 60 minutes, congratulate them. If they worked out between 30 and 60 minutes, encourage them to keep up the good work. If they worked out for less than 30 minutes, remind them to extend their workout time next time.

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 2
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