Skip to the content.

Big Idea 3 Unit 5

Summary

My group taught this lesson as well:

Relational Operators

These are used to test the relationship between two variables. They are used for comparisons and result in a Boolean value of True or False.

  • x == y → equals
  • x != y → not equal to
  • x > y → greater than
  • x < y → less than
  • x >= y → greater than or equal to
  • x <= y → less than or equal to

Logical Operators

These are used to test multiple conditions to produce a single Boolean value.

  • AND (&& in JavaScript, and in Python):
    Returns true only if both conditions are true.

  • OR (|| in JavaScript, or in Python):
    Returns true if at least one condition is true.

  • NOT (! in JavaScript, not in Python):
    Reverses the Boolean value — returns true if condition is false, and vice versa.

Click here to find our lesson: Link to 3.5