Editor
ThePythonBook

Standard Library Essentials

collections, itertools, functools, datetime, regex, and more

04Stage 4 of the roadmap: Pythonic Mastery
7tutorials
45exercises
185minutes
685XP
7 tutorials in this category

Python collections: Counter, defaultdict, deque, and More

Master Python's collections module with interactive examples. Learn Counter, defaultdict, deque, OrderedDict, and namedtuple to write cleaner, faster code.

intermediate25m795

Python itertools: Powerful Tools for Working with Iterables

Master Python's itertools module with interactive examples. Learn chain, product, permutations, combinations, groupby, islice, accumulate, and more.

advanced30m7105

Python functools: lru_cache, partial, reduce, singledispatch

Master Python's functools module with interactive examples. Learn lru_cache for memoization, partial for pre-filling arguments, reduce for folding, and singledispatch for function overloading.

advanced25m7115

Python datetime: Dates, Times, Timezones, and Calculations

Master Python's datetime module with interactive examples. Learn to create dates, do date arithmetic, format with strftime, parse with strptime, and compare dates.

intermediate25m685

Python Regular Expressions: Pattern Matching from Basics to Advanced

Python Regular Expressions: Pattern Matching from Basics to Advanced - interactive tutorial with runnable examples and practice exercises.

intermediate30m7110

Python Enums: Type-Safe Constants for Cleaner Code

Python Enums: Type-Safe Constants for Cleaner Code - interactive tutorial with runnable examples and practice exercises.

intermediate20m580

Python SQLite: Build and Query Databases Without a Server

Python SQLite: Build and Query Databases Without a Server - interactive tutorial with runnable examples and practice exercises.

intermediate30m695