Lesson 14: True/False and Comparisons
Python has two boolean values: True and False. Every comparison (==, !=, >, <) returns one of them.
Python's yes-or-no values. 5 > 3 → True. 5 == 3 → False. == is comparison, = is assignment.
- boolean (bool)
- A logical value True or False.
- ==
- Checks equality between two values.
- !=
- Checks inequality.