Identify the Operator
Click on the comparison operator (like `==` or `>`) in each expression below to learn what it does.
Identify all operators!
True or False?
Evaluate each comparison. Is the result `True` or `False`? Click the correct button!
Build a TRUE Comparison
Drag pieces into the dark box below to build a comparison that evaluates to `True`. Use the format: `Value Operator Value`. (Example: `age > 18`)
temperature = 15
, limit = 20
Mini Missions: Comparisons
Write the Python code for each comparison check. The output should be `True` or `False`.
Mission 1: Score Check
Check if `score = 75` is greater than or equal to `passing_score = 60`. Write the comparison.
Mission 2: Name Match
Check if `name = "AI"` is exactly equal to the string `"AI"`. Write the comparison.
Mission 3: Not Empty
Check if `count = 5` is not equal to `0`. Write the comparison.
Module 5 Practice Complete!
Excellent work comparing values and understanding Booleans! This logic is key for AI decision-making.
Ready for more? Try the Advanced Practice for Module 5!