Problem:

Compute the geometric mean of ${-3, 729, 1, 81, -16807, 1000000}$.

import math

values = -3, 729, 1, 81, -16807, 1000000
geometric_mean = math.prod(values) ** (1 / len(values))
print(geometric_mean)

