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.
Learn Python programming from scratch
Understand the differences between Python's built-in functions and the functions you write yourself, including performance, availability, and how they work together.
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.
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.
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.
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.
Learn the principles of writing reusable Python functions: single responsibility, clear interfaces, avoiding global state, and designing for composition.
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.
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.
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.
Learn what Python modules and packages are, how they organize code beyond single scripts, and why they matter for building maintainable programs.
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.
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.