This project was inspired by: PLEASE Use These 5 Python Decorators
A decorator is a function that modified another function. Note: everything in Python is a object including functions. (i.e. A functions can be passed to or returned from another function.)
From: Python Decorators
In Python, a decorator is a design pattern that allows you to modify the functionality of a function by wrapping it in another function.
The outer function is called the decorator, which takes the original function as an argument and returns a modified version of it.
A parameter is the variable listed inside the parentheses in the function definition. An argument is the value that is sent to the function when it is called. (From: What's the difference between an argument and a parameter?)
Create individual programs to demonstrate the following Python decorators.
Create a program that demonstrates a user define decorator:
For example
Change Project #2 into an interactive program. Use a menu?
List and describe all of Python's built-in decorators. How many are there?