I have a dictionary where keys are strings, and values are integers.
list1 = [{'id': 1, 'ent': 123}, {'id': 2, 'ent': 123}, {'id': 3, 'ent': 456}, {'id': 4, 'ent': 456}, {'id': 5, 'ent': 123}]
How do I get the dictionary with the maximum value of id for given ent?
Expected Outcome:
[{'id': 4, 'ent': 456},{'id': 5, 'ent': 123}]