Spot the Unique Number

In this list, almost every number is the same, but one value stands out from the rest. Write find_uniq, which receives a list arr with at least three numbers and returns the only unique value. The numbers may be floats, so compare the actual values, not their positions.

Примеры

Ввод
[1, 1, 1, 2, 1, 1]
Вывод
2
Ввод
[0, 0, 0.55, 0, 0]
Вывод
0.55
Ввод
[3, 3, 3, 3, 9, 3]
Вывод
9

Нужно реализовать

def find_uniq(arr: list[float]) -> float:

Теги

arraymath
PostgreSQLv16

Taispeánfar toradh do chóid anseo

Visible tests
1
Input
[1,1,1,2,1,1]
Expected2
2
Input
[0,0,0.55,0,0]
Expected0.55
3
Input
[3,3,3,3,9,3]
Expected9
4
Input
[5,1,1,1]
Expected5
5
Input
[2,2,2,7]
Expected7
6
Input
[0,0,0,0,0,0]
Expected0
Focus radio
Paused · SomaFM · Fluid