def multiEvaluate(repeat):
 def decorator(func):
  def inner(*args, **kwargs):
   result = 0.0
   for dummy in range(repeat):
    result += func(*args, **kwargs)
   return (result / repeat)
  return inner
 return decorator

def multiEvaluate ( repeat ) : def decorator ( func ) : def inner ( * args , ** kwargs ) : result = 0.0 for dummy in range ( repeat ) : result += func ( * args , ** kwargs ) return ( result / repeat ) return inner return decorator
decorate a function to evaluate repeatedly with the same arguments .