Chapter 8. Conditionals and Loops


Chapter Topics

  • if Statement

  • else Statement

  • elif Statement

  • Conditional Expressions

  • while Statement

  • for Statement

  • break Statement

  • continue Statement

  • pass Statement

  • else Statement ... Take Two

  • Iterators

  • List Comprehensions

  • Generator Expressions

The primary focus of this chapter are Python's conditional and looping statements, and all their related components. We will take a close look at if, while, for, and their friends else, elif, break, continue, and pass.



Core Python Programming
Core Python Programming (2nd Edition)
ISBN: 0132269937
EAN: 2147483647
Year: 2004
Pages: 334
Authors: Wesley J Chun

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net