Problem:

Compute the mode of ${-2 \sqrt{2}, -\frac{9}{\sqrt{2}}, 3 \sqrt{2}, \frac{7}{\sqrt{2}}, 4 \sqrt{2}, -2 \sqrt{2}, \frac{1}{\sqrt{2}}, 3 \sqrt{2}, -\frac{5}{\sqrt{2}}, -\frac{5}{\sqrt{2}}, 3 \sqrt{2}, -\frac{5}{\sqrt{2}}, \frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}, 4 \sqrt{2}, -\frac{5}{\sqrt{2}}, \frac{7}{\sqrt{2}}, 3 \sqrt{2}, 4 \sqrt{2}, \frac{7}{\sqrt{2}}, \frac{7}{\sqrt{2}}, \frac{7}{\sqrt{2}}}$.

import math

from statistics import mode

values = -2*math.sqrt(2), -(9/(math.sqrt(2))), 3*math.sqrt(2), (7/(math.sqrt(2))), 4*math.sqrt(2), -2*math.sqrt(2), (1/(math.sqrt(2))), 3*math.sqrt(2), -(5/(math.sqrt(2))), -(5/(math.sqrt(2))), 3*math.sqrt(2), -(5/(math.sqrt(2))), (1/(math.sqrt(2))), (1/(math.sqrt(2))), 4*math.sqrt(2), -(5/(math.sqrt(2))), (7/(math.sqrt(2))), 3*math.sqrt(2), 4*math.sqrt(2), (7/(math.sqrt(2))), (7/(math.sqrt(2))), (7/(math.sqrt(2)))
print(mode(values))
