Learn Python — Intermediate
Process collections and text in Python, create reports, and use iterators, itertools and functools. Learn exception handling, context managers, logging, dataclasses and unit tests.
COURSE OVERVIEWREADY
Lessons: 35
Quizzes: 6
All steps: 41
$Ready to start
What you will learn
- Filter, transform and sort collections using comprehensions, lambda, map, filter and multi-criteria keys.
- Combine iterators and aggregate data using generators, itertools and functools, and create functions with args, kwargs and safe default parameters.
- Handle exceptions and resources, write logging messages, and describe records with dataclasses and type annotations.
- Build reports from text, regular expressions, dates and CSV in memory, and verify their results with assertions and unittest.
SYLLABUS / 41
Course curriculum
Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.
35 lessons6 quizzes41 steps total
- 01LESSONLESSON 1: Advanced list operations — inserting, removing and in-place modificationsAvailable now
- 02LESSONLESSON 2: List comprehensions – building lists with filtering and transformationLocked
- 03LESSONLESSON 3: Dict comprehensions – you will construct dictionaries from existing collectionsLocked
- 04LESSONLESSON 4: Set comprehensions – you will generate sets of unique values “on the fly”Locked
- 05LESSONLESSON 5: Lambda – anonymous functionsLocked
- 06LESSONLESSON 6: map() – transforming collection elementsLocked
- 01QUIZQuiz 1: lessons 1–6Locked
- 07LESSONLESSON 7: filter() – data selection — you will filter elements by a conditionLocked
- 08LESSONLESSON 8: zip() – combining parallel collectionsLocked
- 09LESSONLESSON 9: enumerate() – numbering items for reportsLocked
- 10LESSONLESSON 10: sorted() and key – flexible sortingLocked
- 11LESSONLESSON 11: Multi-criteria sorting – you will compose a sorting key from several attributesLocked
- 12LESSONLESSON 12: any() and all() – quickly check whether a collection meets conditionsLocked
- 02QUIZQuiz 2: lessons 7–12Locked
- 13LESSONLESSON 13: Generator Expressions – Computing Values on Demand and Saving MemoryLocked
- 14LESSONLESSON 14: itertools I: islice, chain, cycle — you will slice, join, and repeat sequencesLocked
- 15LESSONLESSON 15: itertools II: groupby, permutations, combinations – you will group data and generate variants of itLocked
- 16LESSONLESSON 16: functools I: partial and reduce — partial functions and aggregating dataLocked
- 17LESSONLESSON 17: functools II: cmp_to_key and lru_cache – complex sorting and caching resultsLocked
- 18LESSONLESSON 18: args/kwargs – a flexible function APILocked
- 03QUIZQuiz 3: lessons 13–18Locked
- 19LESSONLESSON 19: Default parameters and the mutability trap – you will set safe default valuesLocked
- 20LESSONLESSON 20: Exception handling with else and finally – a reliable audit of every paymentLocked
- 21LESSONLESSON 21: Custom exception classes – domain errors with meaningful messagesLocked
- 22LESSONLESSON 22: Logically Dividing Code into Sections in a Single Python FileLocked
- 23LESSONLESSON 23: with Context Managers — Safe Resource Handling with contextlibLocked
- 24LESSONLESSON 24: Logging to Standard Output — Message Levels and a Fixed FormatLocked
- 04QUIZQuiz 4: lessons 19–24Locked
- 25LESSONLESSON 25: dataclasses — Lightweight Records with Comparison and Data ValidationLocked
- 26LESSONLESSON 26: Type hints – introductionLocked
- 27LESSONLESSON 27: String operations in Python: split, join, replace, and stripLocked
- 28LESSONLESSON 28: Formatting reports with f-strings and the format methodLocked
- 29LESSONLESSON 29: Regex – basics of matching simple formats and identifiersLocked
- 30LESSONLESSON 30: Regex – extracting data – you will pull text fragments out for reportsLocked
- 05QUIZQuiz 5: lessons 25–30Locked
- 31LESSONLESSON 31: datetime – basics and formats – parsing and formatting dates and timesLocked
- 32LESSONLESSON 32: StringIO — in-memory “files” — you will simulate reading/writing without a file systemLocked
- 33LESSONLESSON 33: CSV on StringIO — loading and analyzing tabular data in memoryLocked
- 34LESSONLESSON 34: unittest and assertions — your first unit tests for classes and functionsLocked
- 35LESSONLESSON 35: A data report – combining itertools, functools, logging, and testsLocked
- 06QUIZQuiz 6: lessons 31–35Locked
- +EXAMConfirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status