Bridge Academy.
← BACK TO MATERIALS
WEEK 20 · MAY 21, 2026

Data Types · Part 2

Truthy/falsy; comparing types; relational operators; float accuracy.

Lesson 03 · Data Types — Level I · Guide · Part 2

May 21, 2026 · Bridge Academy Python Program

Learning goals

- Compare values with ==, !=, <, >, <=, >=. - Understand truthy and falsy values. - Check a value's type with type(x) == int. - Spot float accuracy problems like 0.1 + 0.2 != 0.3. - Flip booleans with not.

This lesson covers PCEP-30-02 objectives 1.3 and 1.4.

Preview truncated — download the notebook to see the full lesson.