Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

make max function returning more than one value python

count = {'a': 120, 'b': 120, 'c': 100}

highest = max(count.values())

print([k for k, v in count.items() if v == highest])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #max #function #returning #python
ADD COMMENT
Topic
Name
4+1 =