15.04.2013 Views

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8. Conditionals and Loops<br />

Chapter Topics<br />

● if Statement<br />

● else Statement<br />

● elif Statement<br />

● Conditional Expressions<br />

● while Statement<br />

● for Statement<br />

● break Statement<br />

● continue Statement<br />

● pass Statement<br />

● else Statement ... Take Two<br />

● Iterators<br />

● List Comprehensions<br />

● Generator Expressions<br />

The primary focus of this chapter are <strong>Python</strong>'s conditional and looping statements, and all their related<br />

components. We will take a close look at if, while, for, and their friends else, elif, break, continue,<br />

and pass.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!