def add_to_dict(functions):
 def decorator(func):
  functions[func.__name__] = func
  return func
 return decorator

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