Python Decorators

Python Decorators 101

Chris Bailey

Chris Bailey 20 Lessons 1h 7m
intermediate python

In this course on Python decorators, you’ll learn what they are and how to create and use them. Decorators provide a simple syntax for calling higher-order functions in Python. By definition, a decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it.

Section 1: Functions

6 Lessons ⋅ 13m

This section covers what functions are and how they work.

Section 2: Decorators

8 Lessons ⋅ 28m

In this section, you'll see several examples of how to use decorators with different types of functions.

Section 3: Real-World Examples

6 Lessons ⋅ 25m

This section covers a few practical examples of how decorators can be used.

About Chris Bailey

Chris Bailey

Chris is an avid Pythonista and creates video tutorials for Real Python. He is a programmer and data analyst. He creates music under the name Tripnet. Chris lives in Hawaii with his wife and two dogs.

» More about Chris

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

« Browse All Courses