Category: Python

Python Tutorial / Store Data with sqlite3 and Parameterized Queries
Use sqlite3 transactions and value parameters, enforce database constraints and verify that rejected writes and repeated imports preserve the intended records.

Python Tutorial / Understand HTTP APIs, JSON Responses and Request Failures
Run a local HTTP/JSON client with time and size limits, validate records and distinguish network failures from malformed or unsuitable data.

Python Tutorial / Search and Copy Files with a Dry Run and Verification
Preview a batch copy, apply it explicitly, refuse destination collisions and verify file bytes while understanding partial results and scope limits.

Python Tutorial / Aggregate and Combine Iteration with collections and itertools
Use Counter, defaultdict, chain and groupby while accounting for missing-key insertion, adjacent groups and iterator consumption.

Python Tutorial / Search and Extract Text with Regular Expressions
Choose regex searches or full-string validation, extract named groups and separate string shape from calendar and business validity.

Python Tutorial / Work with Dates, Times and Time Zones
Use date, datetime, timedelta and zoneinfo, preserve instants during conversion and choose clear time-zone and calendar-date storage rules.

Python Tutorial / Process Data Lazily with Iterators and Generators
Distinguish iterable objects, iterators and generators, inspect partial consumption and evaluate lazy calculation, memory use and resource lifetime accurately.

Python Tutorial / Create Data-Centered Classes with dataclass
Use dataclass fields and default factories, validate initial data and distinguish generated equality, frozen fields and serialization from application policy.

Python Tutorial / Reuse Code with Inheritance and Composition
Compare inheritance with composition, preserve behavioral contracts and build a ledger that delegates to a replaceable fee policy.

Python Tutorial / Control Object Updates with Methods and Properties
Use property setters to validate initial and later assignments, preserve state after rejection and avoid recursive setters and hidden expensive operations.