sčítaj dve čísla v jednej funkcii
nad dekorátorom, ktorý najskôr napíše ahoj
potom zavolá funkciu sčítania
píše zatiaľ
def hello(func):
def wrapper(a,b):
print('Ahoj')
result = func(a,b)
print("Zatiaľ")
return result
return wrapper
@hello_bye_dec
def add_numbers(a,b):
return a+b
Print(add_numbers(2,3))