• Front Matter
  • Contents
  • 1. Whetting Your Appetite
  • 2. Using the Python Interpreter
    • 2.1 Invoking the Interpreter
      • 2.1.1 Argument Passing
      • 2.1.2 Interactive Mode
    • 2.2 The Interpreter and Its Environment
      • 2.2.1 Error Handling
      • 2.2.2 Executable Python Scripts
      • 2.2.3 Source Code Encoding
      • 2.2.4 The Interactive Startup File
  • 4. More Control Flow Tools
    • 4.1 if Statements
    • 4.2 for Statements
    • 4.3 The range() Function
    • 4.4 break and continue Statements, and else Clauses on Loops
    • 4.5 pass Statements
    • 4.6 Defining Functions
    • 4.7 More on Defining Functions
      • 4.7.1 Default Argument Values
      • 4.7.2 Keyword Arguments
      • 4.7.3 Arbitrary Argument Lists
      • 4.7.4 Unpacking Argument Lists
      • 4.7.5 Lambda Forms
      • 4.7.6 Documentation Strings
    • 4. More Control Flow Tools
      • 4.1 if Statements
      • 4.2 for Statements
      • 4.3 The range() Function
      • 4.4 break and continue Statements, and else Clauses on Loops
      • 4.5 pass Statements
      • 4.6 Defining Functions
      • 4.7 More on Defining Functions
        • 4.7.1 Default Argument Values
        • 4.7.2 Keyword Arguments