This document is a draft chapter from an introduction to computer science using Java, Python, and C++, focusing on programming logic, particularly branching and conditional execution in Python. It covers concepts such as boolean logic, relational and logical operations, the structure of algorithms, and provides learning outcomes and examples for students. The chapter includes detailed discussions on functional programming constructs, including if statements, loops, and the importance of Turing machines in computational theory.