Practical Python
Learn Python through code interpretation, data validation, files, and operational automation. Practice decimal precision, dates, and failure recovery.
Objectives and progression
Ten lessons, 100 regular questions, and 20 original cases develop reasoning for support, import, and concurrent scripts. Includes subprocesses, paths, JSON contracts, decimal precision, mock-based tests, fixtures, futures, deadlines, and admission control. Scenarios use fictional services and reports. The reference is Python 3.14; local checks identify their interpreter and do not establish complete 3.14 or cross-platform validation. The final assessment reuses 74 path decisions. Includes no remote learner Python execution and awards no external certification.
Audience: Support professionals, administrators, and developers automating operational tasks.
Prerequisites: Familiarity with files, variables, and running scripts. Exercises include the necessary context.
468 estimated study minutes
- Interpret types, identity, copies, and collections.
- Define function contracts and validate external inputs.
- Handle resources, decimal precision, and temporal context.
- Diagnose failures and plan observable, repeatable automation.
Modules
- Data, types, and decisions
- Collections without surprises
- Small functions, clear contracts
- Errors and files with context
- Precision, external data, and time
- Observable and repeatable automation
- Subprocesses, paths, and verifiable results
- JSON and iterators with data contracts
- Testable automation and execution contracts
- Concurrency, deadlines, and task recovery
Continue learning
References and version
Python 3.14; DR Python 2026.3
- Python 3.14: Built-in types · 2026-10-01
- Python 3.14: Control flow and function signatures · 2026-10-01
- Python 3.14: Errors and exceptions · 2026-10-01
- Python3.14: Decimal arithmetic · 2026-10-01
- Python 3.14: Date and time types · 2026-10-01
- Python 3.14: IANA time zone support · 2026-09-29
- Python 3.14: CSV reading and writing · 2026-09-29
- Python 3.14: Operating system interfaces · 2026-09-29
- Python 3.14: Logging facility · 2026-10-01
- Python 3.14: System interfaces · 2026-09-29
- Python 3.14: Type hints · 2026-09-29
- Python 3.14: Shallow and deep copying · 2026-09-29
- HTTP Semantics: idempotent methods · 2026-09-29
- Python3.14: Subprocess management · 2026-10-01
- Python3.14: Object-oriented filesystem paths · 2026-10-01
- Python3.14: JSON encoder and decoder · 2026-10-01
- Python3.14: Iterator building blocks · 2026-10-01
- Python3.14: Built-in functions · 2026-10-01
- Python3.14: Temporary files and directories · 2026-10-01
- Python 3.14: Unit testing framework · 2026-10-01
- Python 3.14: Mock object library · 2026-10-01
- Python 3.14: Top-level code environment · 2026-10-01
- Python 3.14: Launching parallel tasks · 2026-10-01
- Python 3.14: Command-line parsing · 2026-10-01
- Python 3.14: Virtual environments · 2026-10-01
- Python 3.14: Thread-based parallelism · 2026-10-01
- Python 3.14: Container datatypes · 2026-10-01
- Python 3.14: Programming FAQ · 2026-10-01
- Python 3.14: Built-in exceptions · 2026-10-01
- Python 3.14: Time access and conversions · 2026-10-01
What you will explore
0 / 10Data, types, and decisions
Understand your values before turning them into decisions.
Collections without surprises
Choose lists, sets, and dictionaries for the problem at hand.
Small functions, clear contracts
Define inputs, results, and side effects before writing the implementation.
Errors and files with context
Handle expected failures and keep resources under control.
Precision, external data, and time
Handle decimals and timestamps without hidden assumptions.
Observable and repeatable automation
Control memory, effects, failures, and execution records.
Subprocesses, paths, and verifiable results
Design wrappers that preserve arguments, control resources, and distinguish execution from delivery.
JSON and iterators with data contracts
Validate data meaning, identity, and consumption before publishing automation results.
Testable automation and execution contracts
Separate logic and effects, design tests that detect failures, and make the scheduler contract explicit.
Concurrency, deadlines, and task recovery
Coordinate futures without losing identity, bound waiting work, and distinguish timeout from cancellation.