---
title: "Discussion on \"What are Decorators in Python? Explained with Code Examples\" | Hashnode"
description: "Discussion on \"What are Decorators in Python? Explained with Code Examples\". In this tutorial, you will learn about Python decorators: what they are, how they work, and when to use them.\nTable of Contents\n\nFoundation for Decorators\n[Introduction to Python Decorators](#Introduction to Python Decorators)\nCreating Simple Decorat..."
url: "https://hashnode.com/posts/decorators-in-python-tutorial/66c7217e87ceefbdaf9b9217"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What are Decorators in Python? Explained with Code Examples](https://freecodecamp.org/news/decorators-in-python-tutorial?utm_source=hashnode&utm_medium=feed)

In this tutorial, you will learn about Python decorators: what they are, how they work, and when to use them. Table of Contents Foundation for Decorators \[Introduction to Python Decorators\](#Introduction to Python Decorators) Creating Simple Decorat...

Jun 18, 2024 · 11 min read · freecodecamp.org  
Read the article

-   [#decorator](https://hashnode.com/tag/decorator)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Samyak Jain](https://hashnode.com/@samyakjainblog)

@samyakjainblog

  
[View profile](https://hashnode.com/@samyakjainblog)

Insatiable learner with a web developer's toolkit. The world of science endlessly fascinates me. More at www.samyakinfo.tech

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
