arr = [{\'red\': {\'weight\': 50}}, {\'blue\': {\'weight\': 60}}, {\'red\': {\'weight\': 70}}]
Let\'s say we