Skip to main content
Ctrl+K
thinkpy - Home

Part I: Fundamentals

  • 1. Introduction
    • 1.1. On Programming
    • 1.2. Python Basic Syntax
  • 2. Syntax and Types
    • 2.1. Variables
    • 2.2. Python Operators
    • 2.3. Built-in Types and Functions
  • 3. Control Flow
    • 3.1. Conditionals
    • 3.2. Iteration
  • 4. Functions

Part II: Data Structures

  • 5. Lists
  • 6. Tuples
  • 7. Dictionaries & Sets
    • 7.1. Dictionaries
    • 7.2. Sets
  • 8. Strings
    • 8.1. Strings
    • 8.2. Regex
    • 8.3. Text Analysis

Part III: Program Design

  • 9. OOP
    • 9.1. OOP Basics
    • 9.2. The Four Pillars
    • 9.3. Advanced OOP
  • 10. Exceptions & Testing
    • 10.1. Exceptions
    • 10.2. Unit Testing
  • 11. FP in Python
    • 11.1. Functional Concepts
    • 11.2. Functional Practice

Part IV: DSA

  • 12. Abstract Data Structures
  • 13. Algorithms
    • 13.1. Algorithms
    • 13.2. Searching
    • 13.3. Sorting

Appendices

  • Work Environment
  • Modules, Files, and Packaging
    • File Management
    • Modules
    • Packaging
    • Coding Patterns and Idioms
  • Jupyter
    • Python installation
    • Virtual Environment
    • Jupyter Notebook
    • Jupyter Bonus
  • Bibliography
  • Repository
  • Open issue

Index

A | E | K | S

A

  • argument

E

  • expression

K

  • keywords, [1]

S

  • statement

By Tsangyao Chen

© Copyright 2026.