I'm a beginner trying to create a small Python project to help me find out which ingredient I might be allergic to from a group of four products. Ideally, I would like to input the ingredients of each product into a list format, and then return identical ingredients which appear in two or more of the products.
I'd like to input something like:
product_1 = ["polybutene", "cranberry seed oil", "beeswax"]
product_2 = ["vegetable oil", "beeswax", "shea butter"]
and get a result like:
list1 = ["beeswax"]
I've tried to use compare_intersect but haven't made any progress. Thank you very much in advance!