def geometric_mean(container):
    """ Returns geometrical mean of values in container. """
    result = 1.
    for element in container:
        result *= element
    return result ** (1./len(container))