Getting intersection of two lists in python
问题 I have two lists of genes that i'm analyzing. Essentially I want to sort the elements of these lists much in the same way as a Venn diagram, i.e. elements that only occur in list 1 are placed in one list, those only in list 2 are in another and those occurring in both are in a third. My code so far: from Identify_Gene import Retrieve_Data #custom class import argparse import os #enable use from command line parser = argparse.ArgumentParser(description='''\n\nFind the intersection between two