Learn Advanced Python 3
Professional Python techniques: structured logging, functional programming, working with SQLite databases, concurrency with threads, processes and asyncio, and getting a Python web app ready to deploy.
- Advanced level
- 5 modules
- 33 lessons
- 125 tasks and questions
Syllabus
01LoggingReplace print-debugging with the logging module: levels, named loggers and their hierarchy, handlers and formatters, logging exceptions with context, application-wide configuration, and filters, rotating files and library etiquette.7 lessons
02Functional programmingWrite code in a functional style: pure functions without side effects, immutable data including namedtuples, map/filter/reduce pipelines, recursion in place of loops, CSV and JSON processing, functools and operator, and your own higher-order functions.9 lessons
03Database operationsUse SQLite from Python: create tables, commit and close correctly, insert data safely with placeholders, query and aggregate, handle NULL, protect data with transactions and constraints, and analyze a dataset.8 lessons
04Concurrent programmingUnderstand concurrency and parallelism, I/O-bound versus CPU-bound work and the GIL; protect shared state with locks; run coroutines concurrently with asyncio; and pick between threads, processes and asyncio.6 lessons
05Getting ready to deployPrepare Python code to run elsewhere: virtual environments, pyproject.toml, configuration from the environment, and serving a web app through WSGI.3 lessons