Idea is to find max value and get all keys corresponding to that value:
count = {'a': 120, 'b': 120, 'c': 100}
highest = max(count.values())
print([k for k, v in count.items() if v == highest])
More Related Contents:
- Getting key with maximum value in dictionary?
- How to find the min/max value of a common key in a list of dicts?
- 5 maximum values in a python dictionary
- How do I sort a dictionary by value?
- Why dict.get(key) instead of dict[key]?
- Split / Explode a column of dictionaries into separate columns with pandas
- Finding max value in the second column of a nested list?
- Writing a dictionary to a csv file with one line for every ‘key: value’
- List of dicts to/from dict of lists
- Find the item with maximum occurrences in a list [duplicate]
- Using a dictionary to select function to execute
- Splitting a semicolon-separated string to a dictionary, in Python
- What is the purpose of collections.ChainMap?
- Key-ordered dict in Python
- Get a list of values from a list of dictionaries?
- Removing multiple keys from a dictionary safely
- Remove dictionary from list
- Range as dictionary key in Python
- Maximum and minimum value of C types integers from Python
- How do I return dictionary keys as a list in Python?
- Why can’t I use a list as a dict key in python? Exactly what can and cannot be used, and why?
- convert csv file to list of dictionaries
- How to reverse a dictionary (whose values are lists) in Python? [duplicate]
- Python dictionary replace values
- Check if all values in list are greater than a certain number
- Why does CSV file contain a blank line in between each data line when outputting with Dictwriter in Python [duplicate]
- python dict.add_by_value(dict_2)?
- How do I re-map python dict keys
- How do I merge dictionaries together in Python?
- Python: Writing Nested Dictionary to CSV