DS160123 New question for all

DaTE:- 16/02/2023

What is the out put of the following snippet?

def hello_python(func):
def wrapped():
return func() + ‘python’
def hello_decorator(func):
Def wrapped():
return func() + ‘decorator’
return wrapped
@hello_python
@hello_decorator
def hello():
return ‘hello!’
print(hello())

1 Like

hello python
hello deorator

1 Like