Decorators in python

to make a function password protected
(this code is not clear perfectly
can you please help me?

A decorator is a function that takes another function and extends the behaviour of the latter function without explicitly modifying it.
Function login_required is kind of authentication function.
So if login_required function wraps the add function, it will modify add function’s behaviour by making it password protected

Hope this helps :grinning: