Decorator
- Decorators add additional functionality to existing functions or classes.
-
To write our own decorators, we need to understand the concept of nested functions
Exercise
- We have a code which does calcualations
- When the user chooses the option verbose
- I’m supposed to print each variable value (args)
Calculator
- We support multiple types of calculations
- Each calculator needs to be registered to the caclultor
