Module 5: Practice Zone

Let's practice making comparisons and using boolean logic!

Identify the Operator

Click on the comparison operator (like `==` or `>`) in each expression below to learn what it does.

Click an operator to see its meaning.

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`)

Context: temperature = 15, limit = 20
Drop 3 pieces here (Value, Operator, Value)...

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.

Result (True/False) appears here...

Mission 2: Name Match

Check if `name = "AI"` is exactly equal to the string `"AI"`. Write the comparison.

Result (True/False) appears here...

Mission 3: Not Empty

Check if `count = 5` is not equal to `0`. Write the comparison.

Result (True/False) appears here...

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!