Merge list of dictionaries where id is duplicate - python3 [duplicate]
问题 This question already has answers here : python list of dictionaries find duplicates based on value (3 answers) Closed last month . I have a list of dictionaries : [{"id":"1", "name":"Alice", "age":"25", "languages":"German"}, {"id":"1", "name":"Alice", "age":"25", "languages":"French"}, {"id":"2", "name":"John", "age":"30", "languages":"English"}, {"id":"2", "name":"John", "age":"30", "languages":"Spanish"}] I'd like the end result to be (I am only considering the id when checking for