compare two lists with multiple attributes regarding the first attribute of each entry
compare two lists with multiple attributes regarding the first attribute of each entry Question: I’m struggeling at an implementation in python for the following probelm: I have two lists which look similar to the once below: list1 = [("aa",2),("bb",1),("cc",5),("dd",3),("ee",7)] list2 = [("bb",3),("dd",1),("cc",2)] Regarding the first attribute of the lists – the String, the second list, …