Boolean

Domain: Programming Fundamentals

🎯 Motivation

Programs constantly make yes/no decisions - is the game over? Is the user logged in? Booleans capture this.

πŸ“‹ Concrete Example

is_logged_in = True or game_over = False. Used in if conditions: if is_logged_in: show_dashboard().

πŸ”— Analogy

A light switch - it’s either ON (True) or OFF (False), nothing in between.