summaryrefslogtreecommitdiff
path: root/progs/a853.py
blob: df558ce0954addf7c1c8b91a5317922cceb77c42 (plain)
1
2
3
4
def extract_symmetric(test_list):
  temp = set(test_list) & {(b, a) for a, b in test_list}
  res = {(a, b) for a, b in temp if a < b}
  return (res)