What separates `=` from `==`, and how do `and`/`or`/`not` turn plain comparisons into program decisions?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Two values are given below: a = 7 and b = 12. Using the less-than operator <,
compute whether a is less than b and store the resulting Boolean in is_less. A
comparison hands back True or False.
Single = against double ==
Write that = binds a value to a name while == tests equivalence, and record 2 < 3 as True and 2 == 3 as False.
The six comparison operators
Tabulate ==, !=, <, <=, >, >= with their meanings, and record "a" == "A" as False for case-sensitive string comparison.
and, or, not written as words
State the result of each combination, evaluate not (2 < 3), 2 < 3 and 3 < 4 and 3 > 4 and 3 < 4, and mark & and | as bitwise.