
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Students will become familiar with decorators in Python and with the common use of their equivalents in other programming languages, such as Annotations in Java, and Attributes in C#.
Demonstrates how a simple decorator in Python decorates a function by wrapping it with an inner function that uppercases the decorated function's output.
Learn how to use a class as a decorator in Python by implementing init and call, ensuring the signature matches the decorated function and the class instance replaces the call.
This course covers one of the more difficult topics in Python. Explaining it step by step throughout the course, using code samples and diagrams will provide you with the desired in-depth understanding, not only in Python but in other programming languages as well. The coding exercises this course includes will allow you to asses the level of understanding you achieve.