Decorators
def wrapper(*args, kwargs):
print(f"Calling function: {func.__name__}")
result = func(*args, kwargs)
print(f"{func.__name__} executed")
return result
return wrapper
@log_function_execution
def say_hello():
print("Hello!")
say_hello()Last updated