Apr-14-2021, 03:57 PM
(Apr-14-2021, 03:29 PM)klllmmm Wrote: Hope this helpsIt is ok now
A = [(7.5,), (17.5,), (22.5,), (25.0,), (27.5,), (30.0,), (37.5,), (40.0,)] B = [(17.5,), (22.5,), (25.0,), (27.5,), (30.0,), (37.5,), (40.0,), (42.5,)] list(set(A).intersection(B))
Output:[(37.5,), (40.0,), (30.0,), (27.5,), (17.5,), (25.0,), (22.5,)]
THanks!