Course Content
Introduction to Python
Introduction to Python
3. Conditional Statements
Boolean Data TypeChallenge: Comparison OperatorsCombining ConditionsChallenge: Logical OperatorsMembership Operators and Types ComparisonSimple if/else ExpressionsChallenge: Grocery StoreChallenge: Odd and Evenif/elif/else ExpressionsChallenge: Grocery Store ExtendedChallenge: Positive, Negative or Zero
Challenge
Task
Swipe to show code editor
You've been handed the dictionary people
, which is structured as 'name': (age, height)
. Here's what you need to do:
- Complete the missing information for Peter, based on the details provided below.
Name | Age | Height |
---|---|---|
Peter | 29 | 175 |
- Display the details related to Alex.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 12
Challenge
Task
Swipe to show code editor
You've been handed the dictionary people
, which is structured as 'name': (age, height)
. Here's what you need to do:
- Complete the missing information for Peter, based on the details provided below.
Name | Age | Height |
---|---|---|
Peter | 29 | 175 |
- Display the details related to Alex.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 12
Switch to desktop for real-world practiceContinue from where you are using one of the options below