p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Decorators
Exercise: Stack two decorators
Exercise: Stack two decorators
Apply both
add_one
and
double
to
value()
. The decorator nearest the function runs first, so order matters.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output