lst1 = [1,2,3,4] lst2 = [3,4,5,6] intersection = list(set(lst1) & set(lst2)) intersection = list(set(lst1).intersection(lst2)) print( intersection)
To embed this project on your website, copy the following code and paste it into your website's HTML: