def decor(fn):
def wrapper(*args, **kwargs):
print('start')
res = fn(*args, **kwargs)
print('finish')
return res
return wrapper
@decor
def summ(x, y):
return x+y
r = decor(summ(2, 4))
print(r)# your code goes here
ZGVmIGRlY29yKGZuKToKCWRlZiB3cmFwcGVyKCphcmdzLCAqKmt3YXJncyk6CgkJcHJpbnQoJ3N0YXJ0JykKCQlyZXMgPSBmbigqYXJncywgKiprd2FyZ3MpCgkJcHJpbnQoJ2ZpbmlzaCcpCgkJcmV0dXJuIHJlcwoJcmV0dXJuIHdyYXBwZXIKCQpAZGVjb3IKZGVmIHN1bW0oeCwgeSk6CglyZXR1cm4geCt5CgkKciA9IGRlY29yKHN1bW0oMiwgNCkpCgpwcmludChyKSMgeW91ciBjb2RlIGdvZXMgaGVyZQ==