Sobes.tech
Senior
9

def hello(func): def decorator(func): def wrapper(a,b): result = None for _ in range(max_tries): print('Привет') result = func(a,b) print("Пока") return result return wrapper return decorator @hello(max_tries=5) def add_numbers(a,b): return a+b print(add_numbers(2,3))

Companies where asked
X5 techX5 tech