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 have the dictionary people
, which holds data on individuals' names, ages, and heights using the format 'name': (age, height)
. Your tasks include:
- Adding the following details to the
people
dictionary:
Name | Age | Height |
---|---|---|
John | 41 | 185 |
Michelle | 35 | 165 |
- Displaying the updated dictionary.
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 14
Challenge
Task
Swipe to show code editor
You have the dictionary people
, which holds data on individuals' names, ages, and heights using the format 'name': (age, height)
. Your tasks include:
- Adding the following details to the
people
dictionary:
Name | Age | Height |
---|---|---|
John | 41 | 185 |
Michelle | 35 | 165 |
- Displaying the updated dictionary.
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 14
Switch to desktop for real-world practiceContinue from where you are using one of the options below