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

Task
test

Swipe to show code editor

You're building a fitness tracker app that provides motivational messages when users reach their fitness goals. Currently, the logic is cluttered with multiple if statements, and it's your job to simplify it using the or operator.

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 1. Chapter 6
toggle bottom row

book
Challenge: Simplify Fitness Tracker Logic

Task
test

Swipe to show code editor

You're building a fitness tracker app that provides motivational messages when users reach their fitness goals. Currently, the logic is cluttered with multiple if statements, and it's your job to simplify it using the or operator.

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 1. Chapter 6
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