human
I am working on the file "Python/Chapter-04/Quick-Sort-Array.ipynb".
The first task is:
The function logging is used as a decorator.  It takes a function 
f as its argument and returns a new function logged_f that returns 
the same result as the function f, but additionally it prints its arguments 
before the function is called and when the function returns, both the function 
call and the result is printed.
The decorator logging is useful for debugging.
Can you write Python program for it?
 ... What is a the Python program you requested?
assistant
#Here is the Python program you requested.

def logging(f):
    def logged_f(*a):
        print(f'{f.__name__}{a}')
        r = f(*a)
        print(f'{f.__name__}{a} = {r}')
        return r
    return logged_f