Introduction
Decorators in Python
()
How to practice in CoderPad
()
1. Functions
Working with functions in Python
()
Functions within functions
()
2. Getting Started
What are decorators?
()
Challenge: Beautify your output
()
Solution: Beautify your output
()
Challenges with debugging
()
Solution: HTML styling with decorators
()
3. Decorators with Arguments
Functions with *args and **kwargs
()
Decorators with *args and **kwargs
()
Use decorators to time functions
()
Solution: Decorators with arguments
()
4. Decorators with Classes
Classes and decorators in Python
()
Use decorators as a cache
()
5. Decorators in the Real World
Install Flask
()
Run Flask
()
The route function in Flask
()
Conclusion
Experiment with decorators in Python
()
Ex_Files_Python_Beyond_Decorators.zip
(13 KB)