5
Execution Control
An approximate answer to the right problem is worth a good deal more than an exact answer to an approximate problem.
John Tukey
In This Chapter
Up until this point in the book, you’ve seen statements as individual units, executing sequentially one line at a time. Programming becomes much more powerful and interesting when you can group statements together so that they execute as a unit. Simple statements that are joined together can perform more complex behaviors.
Compound Statements
Chapter 2, “Fundamentals of Python,” introduces simple statements, each of which performs an action. This ...
Get Foundational Python for Data Science now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.