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

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

Bitwise Operators in Python

Learn how Python bitwise operators AND, OR, XOR, NOT, left shift, and right shift manipulate integers at the binary level, and when to use each one.

OperatorsPythonBeginner
Jul 10, 2026· 7 min read

Local and Global Variables in Python

Learn the practical differences between local and global variables, when to use each, and how to avoid the most common scope-related bugs in Python functions.

IntermediateFunctionsPython
Jul 10, 2026· 7 min read

Positional and Keyword Arguments in Python

Master the two ways to pass arguments to Python functions: by position and by keyword. Learn the rules for mixing them and when to choose each style.

PythonFunctionsIntermediate
Jul 10, 2026· 7 min read

Default Parameter Values in Python Functions

Learn how to set default values for function parameters, the rules for ordering required and optional parameters, and how to avoid mutable default value pitfalls.

FunctionsIntermediatePython
Jul 10, 2026· 7 min read

Python *args Explained

Learn how *args lets Python functions accept any number of positional arguments, how it works under the hood as a tuple, and when to use it in your own functions.

IntermediateFunctionsPython
Jul 10, 2026· 7 min read

Python **kwargs Explained

Learn how **kwargs lets Python functions accept any number of keyword arguments, how it works as a dictionary, and how to combine it with *args for maximum flexibility.

IntermediateFunctionsPython
Jul 10, 2026· 7 min read

Pass Objects to Python Functions

Understand how Python passes objects to functions, the difference between passing mutable and immutable types, and how to avoid accidental data modification.

FunctionsIntermediatePython
Jul 10, 2026· 7 min read

Recursive Functions in Python

Learn how recursive functions work in Python, including base cases, the call stack, recursion depth limits, and when to choose recursion over iteration.

IntermediatePythonFunctions