Python: simple list merging based on intersections August 18, 2022 by Magenaut Consider there are some lists of integers as: