I have been able to find a few articles on comparing 2 lists, but I have 4 lists that I need to compare. I need to find any repeated elements and the list that they came from. For example,<br><br>list1 = [&#39;one&#39;, &#39;two&#39;, &#39;three&#39;]
<br>list2 = [&#39;one&#39;, &#39;two&#39;, &#39;four&#39;, &#39;five&#39;]<br>list3 = [&#39;two&#39;, &#39;three&#39;, &#39;six&#39;, &#39;seven&#39;]<br>list4 = [&#39;three&#39;, &#39;five&#39;, &#39;six&#39;]<br><br><br>
I need to be able to get along the lines of output:<br>Element &#39;one&#39; contained in list1 and list2<br>Element &#39;two&#39; contained in list1 and list2 and list3<br>...<br>Element &#39;five&#39; contained in list2 and list4
<br><br>etc.. and I can&#39;t quite figure out how to go about it<br><br>