Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

return max repeated value in list

# return max repeated value in a list
x = [1,2,3,4,4,5,5,6,6,1,1,1,1,1,2,2]
print(max(set(x), key = x.count))
 
PREVIOUS NEXT
Tagged: #return #max #repeated #list
ADD COMMENT
Topic
Name
4+9 =