I have two lists in Python:

temp1 = ['One', 'Two', 'Three', 'Four']
temp2 = ['One', 'Two']

I want to create a third list with items from the first list which aren’t in the second list:

temp3 = ['Three', 'Four']

Are there any fast ways without cycles and checking?

3Best Answer
31

Leave a Reply

Your email address will not be published. Required fields are marked *