Python Notes
Notes from tutorial at python.org
Using the Python Interpreter
  1. Invoking the Interpreter
  2. Argument Passing
  3. Interactive Mode
  4. Source Code Encoding
An Informal Introduction to Python
  1. Using Python as a Calculator
  2. Numbers
  3. Text
  4. Lists
  5. First Steps Towards Programming
More Control Flow Tools (Statements)
  1. Unpacking
  2. if Statements
  3. for Statements
  4. range() Function
  5. break and continue Statements
  6. else Clauses on Loops
  7. pass Statements
  8. match Statements
More Control Flow Tools (Functions)
  1. Defining Functions
  2. Default Argument Values
  3. Keyword Arguments
  4. Special Parameters
  5. Arbitrary Argument Lists
  6. Unpacking Argument Lists
  7. Lambda Expressions
  8. Documentation Strings
  9. Function Annotations
  10. Intermezzo: Coding Style
Data Structures
  1. More on Lists
  2. Using Lists as Stacks
  3. Using Lists as Queues
  4. List Comprehensions
  5. Nested List Comprehensions
  6. The del statement
  7. Tuples and Sequences
  8. Sets
  9. Dictionaries
  10. Looping Techniques
  11. More on Conditions
  12. Comparing Sequences and Other Types
Modules
  1. Modules
  2. More on Modules
  3. Executing Modules as Scripts
  4. The Module Search Path
  5. "Compiled" Python files
  6. Standard Modules
  7. The dir() Function
  8. Packages
  9. Importing * From a Package
  10. Intra-package References
  11. Packages in Multiple Directories
Input and Output
  1. Fancier Output Formatting
  2. Formatted String Literals
  3. The String format() Method
  4. Manual String Formatting
  5. Old String Formatting
  6. Reading and Writing Files
  7. Methods of File Objects
  8. Saving Structured Data with json
Errors and Exceptions
  1. Syntax Errors
  2. Exceptions
  3. Handling Exceptions
  4. Raising Exceptions
  5. Exception Chaining
  6. Defining Clean-up Actions
  7. Predefined Clean-up Actions
  8. Raising and Handling Multiple Unrelated Exceptions
  9. Enriching Exceptions with Notes
Classes
  1. Classes
  2. A Word About Names and Objects
  3. Python Scopes and Namespaces
  4. Class Definition Syntax
  5. Class Objects
  6. Instance Objects
  7. Method Objects
  8. Class and Instance Variables
  9. Random Remarks
  10. Inheritance
  11. Multiple Inheritance
  12. Private Variables
  13. Odds and Ends
  14. Iterators
  15. Generators
  16. Generator Expressions
Brief Tour of the Standard Library
  1. Operating System Interface
  2. File Wildcards
  3. Command Line Arguments
  4. Error Output Redirection and Program Termination
  5. String Pattern Matching
  6. Mathematics
  7. Internet Access
  8. Dates and Times
  9. Data Compression
  10. Performance Measurement
  11. Quality Control
  12. Batteries Included
Brief Tour of the Standard Library - Part II
  1. Output Formatting
  2. Templating
  3. Working with Binary Data Record Layouts
  4. Multi-threading
  5. Logging
  6. Weak References
  7. Tools for Working with Lists
  8. Decimal Floating-Point Arithmetic
Virtual Environments and Packages
  1. Introduction
  2. Creating Virtual Environments
  3. Managing Packages with pip
n4jvp.com