Python

Learn Python programming from scratch

344 tutorials
12 of 344 tutorials
Jul 8, 2026· 5 min read

Working with Python Dictionaries

Learn what Python dictionaries are, how they map keys to values for fast lookups, and why dicts are the backbone of data processing in Python.

collectionsBeginnerPython
Jul 8, 2026· 5 min read

Access and Update Dictionaries in Python

Learn how to access dictionary values safely with get(), add and update entries, remove keys with pop() and del, and iterate over keys, values, and items.

collectionsPythonBeginner
Jul 8, 2026· 5 min read

Dictionary Views in Python

Learn about Python dictionary view objects (keys(), values(), and items()) and how they provide a dynamic window into a dictionary's contents.

PythoncollectionsBeginner
Jul 8, 2026· 5 min read

Nested Dictionaries in Python

Learn how to create, access, and modify nested dictionaries in Python. Build multi-level data structures and avoid the common pitfalls of shared references.

BeginnercollectionsPython
Jul 8, 2026· 5 min read

Iterate Through Python Collections

Learn how to iterate through lists, tuples, sets, and dictionaries in Python. Master for loops, unpacking, enumerate, and when to iterate over keys, values, or items.

collectionsBeginnerPython
Jul 8, 2026· 5 min read

Python Collection Membership Testing

Learn how the in operator works across Python collections. Understand the performance difference between lists, sets, and dictionaries for membership tests.

BeginnercollectionsPython
Jul 8, 2026· 5 min read

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().

PythonBeginnercollections
Jul 8, 2026· 5 min read

Choose the Right Python Collection Type

Learn how to decide between lists, tuples, sets, and dictionaries. A practical decision guide based on ordering, mutability, uniqueness, and lookup needs.

collectionsBeginnerPython
Jul 8, 2026· 5 min read

Shallow vs Deep Copy in Python Collections

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.

PythonBeginnercollections
Jul 8, 2026· 5 min read

Common Collection Methods in Python

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.

PythoncollectionsBeginner
Jul 8, 2026· 5 min read

Common Collection Mistakes in Python

Avoid the most frequent Python collection mistakes: aliasing instead of copying, modifying while iterating, using the wrong type for lookups, and shared inner lists.

BeginnercollectionsPython
Jul 8, 2026· 5 min read

Assignment Operators in Python

Learn how Python assignment operators work, from basic assignment to compound operators that combine calculation and storage in one concise step.

PythonOperatorsBeginner