8.2 - Conditionals (Decision Making Statements)
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What does an if statement do?
💡 Hint: Think about the condition that needs to be checked.
Write a simple if statement to check if age is 18.
💡 Hint: Use equality operator to check the condition.
3 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does an if statement do?
💡 Hint: Think about how the statement works based on true or false.
True or False? An if-else statement has two pathways.
💡 Hint: Consider how decisions are made.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Write a program that takes a percentage and prints corresponding letter grades (A for 90+, B for 80-89, etc.) using if-elif-else.
💡 Hint: Think about how to check ranges.
Create a program that allows the user to guess a number. Use conditionals to offer hints: 'Too high' or 'Too low'.
💡 Hint: Consider how to guide the user based on their input.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.