Python

Learn Python programming from scratch

144 tutorials
12 of 144 tutorials
Jul 10, 2026· 7 min read

Python Built-in Functions vs User-Defined Functions

Understand the differences between Python's built-in functions and the functions you write yourself, including performance, availability, and how they work together.

IntermediatePythonFunctions
Jul 10, 2026· 7 min read

First-Class Functions in Python

Learn what it means for Python functions to be first-class objects: you can assign them to variables, pass them as arguments, and return them from other functions.

FunctionsPythonIntermediate
Jul 10, 2026· 7 min read

Higher-Order Functions in Python

Learn what higher-order functions are, how to use Python's built-in map, filter, and sorted, and how to write your own functions that accept or return other functions.

PythonIntermediateFunctions
Jul 10, 2026· 7 min read

Use Python Functions as Callback Arguments

Learn how to pass Python functions as callbacks, how callback patterns work in event-driven and asynchronous code, and when to use callbacks versus other approaches.

PythonIntermediateFunctions
Jul 10, 2026· 7 min read

Common Python Function Mistakes

Learn the most common mistakes Python developers make with functions, from mutable defaults to late binding closures, and how to avoid or fix each one.

IntermediatePythonFunctions
Jul 10, 2026· 7 min read

Writing Reusable Python Functions

Learn the principles of writing reusable Python functions: single responsibility, clear interfaces, avoiding global state, and designing for composition.

FunctionsIntermediatePython
Jul 10, 2026· 7 min read

Organize Python Functions Across Files

Learn how to organize Python functions into multiple files, when to split a module, and how to structure imports so your project stays maintainable as it grows.

PythonFunctionsIntermediate
Jul 10, 2026· 7 min read

Testing Python Functions

Learn how to test Python functions using assert statements and simple test patterns, and understand why functions that are pure and self-contained are easier to test.

IntermediateFunctionsPython
Jul 10, 2026· 7 min read

Build a Python Utility Library with Functions

Put your function skills together by building a small, reusable utility library. Learn how to design, organize, document, and test a collection of related Python functions.

PythonIntermediateFunctions
Jul 10, 2026· 6 min read

Python Modules and Packages Explained

Learn what Python modules and packages are, how they organize code beyond single scripts, and why they matter for building maintainable programs.

Pythonmodules-packagesIntermediate
Jul 10, 2026· 5 min read

Create Your First Python Module

Learn how to create a Python module by writing a .py file, adding functions to it, and importing it from another file in the same project.

Intermediatemodules-packagesPython
Jul 10, 2026· 6 min read

Import Modules in Python

Learn how the Python import statement works, where Python searches for modules, and how to avoid common import pitfalls like naming conflicts and circular dependencies.

PythonIntermediatemodules-packages