Logical Operator

Domain: Programming Fundamentals

🎯 Motivation

You often need to combine conditions - age over 13 AND has permission, OR is an adult.

📋 Concrete Example

age > 13 and has_permission - both must be True. is_admin or is_teacher - either one being True is enough. not is_banned.

🔗 Analogy

Filtering at a theme park: you can ride if (tall enough) AND (not pregnant) OR (have a VIP pass). AND, OR, NOT combine the rules.