Avatar ·

Comparison of 2 lists in Python

📁 список, python, вопрос

Hello, there are two lists

  anti = [ 'Red' ,  '"blue' ,  'green' ,  'White' ]  word = [ '' red ',  'White' ]     

you need to compare two lists and the matching elements to bring to a separate list, say, result. Such a question has already been, but I can’t understand how to get the same elements.