Avatar ·

Comparison of 2 lists in Python

📁 List, Advanced Python Topics, question

Hello, there are two lists

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

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