< BACKMake Note | BookmarkCONTINUE >
156135250194107072078175030179198180024228156016206217188240240204175202199136113188160200

Chapter 8. Conditionals and Loops

Chapter Topics

  • if statement

  • else statement

  • elif statement

  • while statement

  • for statement

    • range() built-in function

  • break statement

  • continue statement

  • pass statement

  • else statement… take two

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.


Last updated on 9/14/2001
Core Python Programming, © 2002 Prentice Hall PTR

< BACKMake Note | BookmarkCONTINUE >

© 2002, O'Reilly & Associates, Inc.