Most frequent element in the list
1
array = [
1
,
1
,
2
,
2
,
2
,
3
]
2
max
(
set
(array), key=array.count)
# 2