human
Complete this python program:
def add_to_dict(functions):
assistant
#Here is the Python program you requested.

    """A decorator that adds a function to dictionary.
    """
    def decorator(func):
        functions[func.__name__] = func
        return func
    return decorator