Python

Learn Python programming from scratch

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

Working with Python Tuples

Learn what Python tuples are, how they differ from lists, when to use them, and why immutability makes tuples the right choice for fixed collections of data.

collectionsPythonBeginner
Jul 8, 2026· 5 min read

Pack and Unpack Tuples in Python

Learn tuple packing and unpacking in Python. Master multiple assignment, swapping variables, star expressions for extended unpacking, and using unpacking in loops.

collectionsBeginnerPython
Jul 8, 2026· 5 min read

Working with Python Sets

Learn what Python sets are, how they store unique unordered items, and when to use a set over a list or tuple for fast membership testing and duplicate removal.

PythoncollectionsBeginner
Jul 8, 2026· 5 min read

Add and Remove Set Items in Python

Learn how to add items to a Python set with add() and update(), and remove items with remove(), discard(), pop(), and clear().

PythonBeginnercollections
Jul 8, 2026· 5 min read

Set Operations in Python

Master Python set operations: union, intersection, difference, and symmetric difference. Use both operators and methods to compare and combine sets efficiently.

BeginnercollectionsPython
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

Dictionary Comprehensions in Python

Master Python dictionary comprehensions to build dictionaries from iterables in a single line. Learn the syntax, filtering, and when to use a regular loop instead.

PythonBeginnercollections
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