Re: [Tutor] Comparing more than 2 lists

2008-01-24 Thread Alan Gauld
"Fiyawerx" <[EMAIL PROTECTED]> wrote > list1 = ['one', 'two', 'three'] > list2 = ['one', 'two', 'four', 'five'] > list3 = ['two', 'three', 'six', 'seven'] > list4 = ['three', 'five', 'six'] > > I need to be able to get along the lines of output: > Element 'one' contained in list1 and list2 > El

Re: [Tutor] Comparing more than 2 lists

2008-01-24 Thread Fiyawerx
x27;] > > list2 = ['one', 'two', 'four', 'five'] > > list3 = ['two', 'three', 'six', 'seven'] > > list4 = ['three', 'five', 'six'] > > https://mail.google.com/mai

Re: [Tutor] Comparing more than 2 lists

2008-01-24 Thread Michael Langford
#x27;two', 'four', 'five'] > list3 = ['two', 'three', 'six', 'seven'] > list4 = ['three', 'five', 'six'] > https://mail.google.com/mail/#label/Pythontutor/117aadf8364dbf3b Gmail - [Tutor

[Tutor] Comparing more than 2 lists

2008-01-24 Thread Fiyawerx
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, list1 = ['one', 'two', 'three'] list2 = ['one', 'two', 'four', 'five'] list3 = ['two', 'three', 'six', 'seven