Problem:

Compute the mode of ${3 \sqrt{2}, -6 \sqrt{2}, 3 \sqrt{2}, -6 \sqrt{2}, -\frac{3}{\sqrt{2}}, -\frac{3}{\sqrt{2}}, \sqrt{2}, 3 \sqrt{2}, 3 \sqrt{2}, -6 \sqrt{2}, -6 \sqrt{2}, -6 \sqrt{2}, 3 \sqrt{2}, \sqrt{2}, -6 \sqrt{2}, -\frac{3}{\sqrt{2}}, 3 \sqrt{2}, \sqrt{2}, 3 \sqrt{2}, -6 \sqrt{2}, \sqrt{2}, \sqrt{2}, 3 \sqrt{2}}$.

import math

from statistics import mode

values = 3*math.sqrt(2), -6*math.sqrt(2), 3*math.sqrt(2), -6*math.sqrt(2), -(3/(math.sqrt(2))), -(3/(math.sqrt(2))), math.sqrt(2), 3*math.sqrt(2), 3*math.sqrt(2), -6*math.sqrt(2), -6*math.sqrt(2), -6*math.sqrt(2), 3*math.sqrt(2), math.sqrt(2), -6*math.sqrt(2), -(3/(math.sqrt(2))), 3*math.sqrt(2), math.sqrt(2), 3*math.sqrt(2), -6*math.sqrt(2), math.sqrt(2), math.sqrt(2), 3*math.sqrt(2)
print(mode(values))
