Python's Built-in Collection Functions
Learn Python's built-in functions that work across all collection types: len(), min(), max(), sum(), sorted(), reversed(), zip(), and enumerate().
Learn Python programming from scratch
Learn Python's built-in functions that work across all collection types: len(), min(), max(), sum(), sorted(), reversed(), zip(), and enumerate().
Learn how to decide between lists, tuples, sets, and dictionaries. A practical decision guide based on ordering, mutability, uniqueness, and lookup needs.
Understand shallow vs deep copy across all Python collections. Learn when slicing and the copy method are enough, and when you need the deepcopy function.
A quick-reference guide to the most-used methods across Python lists, tuples, sets, and dictionaries. Learn which methods each type shares and which are unique.
Learn practical techniques to make Python collections faster and more memory-efficient. Choose the right type, use comprehensions, and know when to reach for the collections module.
Avoid the most frequent Python collection mistakes: aliasing instead of copying, modifying while iterating, using the wrong type for lookups, and shared inner lists.
See Python collections in action with real-world examples: counting words, grouping data, removing duplicates, building lookup tables, and processing JSON.
Put your Python collections knowledge into practice. Build a task tracker, a grade calculator, and a shopping cart using lists, dictionaries, sets, and tuples.
Learn what Python operators are, the seven categories they fall into, and how each group helps you write calculations, comparisons, assignments, and logic.
Learn how Python assignment operators work, from basic assignment to compound operators that combine calculation and storage in one concise step.
Learn how Python logical operators and, or, and not work, how short-circuit evaluation saves computation, and how truthy and falsy values control program flow.
Learn how Python short-circuit evaluation works with and and or operators, why it stops evaluating as soon as the result is determined, and how to use it safely.