human
Give me a the Python program you requested given the following:
Complete the below
def add_to_dict(functions):

    ''''A decorator that adds a function to dictionary.'
    '''
assistant
#Here is the Python program you requested.
    def decorator(func):
        functions[func.__name__] = func
        return func
    return decorator