Python logo

Table of Contents

  • 4. More Control Flow Tools
    • 4.1. if Statements
    • 4.2. for Statements
    • 4.3. The range() Function
    • 4.4. break and continue Statements
    • 4.5. else Clauses on Loops
    • 4.6. pass Statements
    • 4.7. match Statements
    • 4.8. Defining Functions
    • 4.9. More on Defining Functions
      • 4.9.1. Default Argument Values
      • 4.9.2. Keyword Arguments
      • 4.9.3. Special parameters
        • 4.9.3.1. Positional-or-Keyword Arguments
        • 4.9.3.2. Positional-Only Parameters
        • 4.9.3.3. Keyword-Only Arguments
        • 4.9.3.4. Function Examples
        • 4.9.3.5. Recap
      • 4.9.4. Arbitrary Argument Lists
      • 4.9.5. Unpacking Argument Lists
      • 4.9.6. Lambda Expressions
      • 4.9.7. Documentation Strings
      • 4.9.8. Function Annotations
    • 4.10. Intermezzo: Coding Style

Previous topic

3. An Informal Introduction to Python

Next topic

5. Data Structures