Python

Learn Python programming from scratch

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

Copy Python Lists

Learn how to copy Python lists using slicing, the copy method, the list constructor, and the copy module. Understand shallow vs deep copies.

PythonBeginnercollections
Jul 8, 2026· 5 min read

Nested Lists in Python

Learn how to create, access, and modify nested lists in Python. Build grids and matrices, and understand how shallow copies affect multi-dimensional data.

BeginnercollectionsPython
Jul 8, 2026· 5 min read

List Comprehensions in Python

Master Python list comprehensions to create, filter, and transform lists in a single line. Learn the syntax, common patterns, and when to use a regular loop instead.

collectionsPythonBeginner
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

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

Real-World Python Collection Examples

See Python collections in action with real-world examples: counting words, grouping data, removing duplicates, building lookup tables, and processing JSON.

PythoncollectionsBeginner
Jul 8, 2026· 5 min read

Arithmetic Operators in Python

Learn every Python arithmetic operator, including addition, subtraction, multiplication, division, floor division, modulo, and exponentiation, with clear examples for each one.

PythonBeginnerOperators
Jul 8, 2026· 5 min read

Logical Operators in Python

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.

PythonOperatorsBeginner