Problem:

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

import math

from statistics import mode

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