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 = ['one', 'two', 'three']
<br>list2 = ['one', 'two', 'four', 'five']<br>list3 = ['two', 'three', 'six', 'seven']<br>list4 = ['three', 'five', 'six']<br><br><br>
I need to be able to get along the lines of output:<br>Element 'one' contained in list1 and list2<br>Element 'two' contained in list1 and list2 and list3<br>...<br>Element 'five' contained in list2 and list4
<br><br>etc.. and I can't quite figure out how to go about it<br><br>