Knowledge baseExam Center
ENEnglish
Choose language13

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
Knowledge base for this technology

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.

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
  1. 01LESSON
    LESSON 1: Advanced list operations — inserting, removing and in-place modificationsAvailable now
  2. 02LESSON
    LESSON 2: List comprehensions – building lists with filtering and transformationLocked
  3. 03LESSON
    LESSON 3: Dict comprehensions – you will construct dictionaries from existing collectionsLocked
  4. 04LESSON
    LESSON 4: Set comprehensions – you will generate sets of unique values “on the fly”Locked
  5. 05LESSON
    LESSON 5: Lambda – anonymous functionsLocked
  6. 06LESSON
    LESSON 6: map() – transforming collection elementsLocked
  7. 01QUIZ
    Quiz 1: lessons 1–6Locked
  8. 07LESSON
    LESSON 7: filter() – data selection — you will filter elements by a conditionLocked
  9. 08LESSON
    LESSON 8: zip() – combining parallel collectionsLocked
  10. 09LESSON
    LESSON 9: enumerate() – numbering items for reportsLocked
  11. 10LESSON
    LESSON 10: sorted() and key – flexible sortingLocked
  12. 11LESSON
    LESSON 11: Multi-criteria sorting – you will compose a sorting key from several attributesLocked
  13. 12LESSON
    LESSON 12: any() and all() – quickly check whether a collection meets conditionsLocked
  14. 02QUIZ
    Quiz 2: lessons 7–12Locked
  15. 13LESSON
    LESSON 13: Generator Expressions – Computing Values on Demand and Saving MemoryLocked
  16. 14LESSON
    LESSON 14: itertools I: islice, chain, cycle — you will slice, join, and repeat sequencesLocked
  17. 15LESSON
    LESSON 15: itertools II: groupby, permutations, combinations – you will group data and generate variants of itLocked
  18. 16LESSON
    LESSON 16: functools I: partial and reduce — partial functions and aggregating dataLocked
  19. 17LESSON
    LESSON 17: functools II: cmp_to_key and lru_cache – complex sorting and caching resultsLocked
  20. 18LESSON
    LESSON 18: args/kwargs – a flexible function APILocked
  21. 03QUIZ
    Quiz 3: lessons 13–18Locked
  22. 19LESSON
    LESSON 19: Default parameters and the mutability trap – you will set safe default valuesLocked
  23. 20LESSON
    LESSON 20: Exception handling with else and finally – a reliable audit of every paymentLocked
  24. 21LESSON
    LESSON 21: Custom exception classes – domain errors with meaningful messagesLocked
  25. 22LESSON
    LESSON 22: Logically Dividing Code into Sections in a Single Python FileLocked
  26. 23LESSON
    LESSON 23: with Context Managers — Safe Resource Handling with contextlibLocked
  27. 24LESSON
    LESSON 24: Logging to Standard Output — Message Levels and a Fixed FormatLocked
  28. 04QUIZ
    Quiz 4: lessons 19–24Locked
  29. 25LESSON
    LESSON 25: dataclasses — Lightweight Records with Comparison and Data ValidationLocked
  30. 26LESSON
    LESSON 26: Type hints – introductionLocked
  31. 27LESSON
    LESSON 27: String operations in Python: split, join, replace, and stripLocked
  32. 28LESSON
    LESSON 28: Formatting reports with f-strings and the format methodLocked
  33. 29LESSON
    LESSON 29: Regex – basics of matching simple formats and identifiersLocked
  34. 30LESSON
    LESSON 30: Regex – extracting data – you will pull text fragments out for reportsLocked
  35. 05QUIZ
    Quiz 5: lessons 25–30Locked
  36. 31LESSON
    LESSON 31: datetime – basics and formats – parsing and formatting dates and timesLocked
  37. 32LESSON
    LESSON 32: StringIO — in-memory “files” — you will simulate reading/writing without a file systemLocked
  38. 33LESSON
    LESSON 33: CSV on StringIO — loading and analyzing tabular data in memoryLocked
  39. 34LESSON
    LESSON 34: unittest and assertions — your first unit tests for classes and functionsLocked
  40. 35LESSON
    LESSON 35: A data report – combining itertools, functools, logging, and testsLocked
  41. 06QUIZ
    Quiz 6: lessons 31–35Locked
  42. +EXAM
    Confirm 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