from functools import reduce


def operate(func, *dicts):
    """Apply func to values of *dicts and return the result."""
    result = [value for d in dicts for value in d.values()]
    result = reduce(func, result, 1)
    return result