0
How to fix this error ? I need an output =sololearn=
def decor(func): x = '=' return x + func() + x @decor def text(): s = 'sololearn' return s print(text())
1 Answer
+ 1
Remove parentheses after func OR after text and remove @decor
def decor(func): x = '=' return x + func() + x @decor def text(): s = 'sololearn' return s print(text())