Login
Remember
Register
Ask a Question
Find the most frequent value in a list
0
votes
asked
May 24, 2020
in
Python
by
SakshiSharma
Find the most frequent value in a list
#python-value
#value-python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 24, 2020
by
Robindeniel
test = [1, 2, 3, 9, 2, 7, 3, 5, 9, 9, 9]
print(max(set(test), key = test.count))
Output:
9
...