Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

How to find a intersection between two or more lists? (Not sets) [duplicate]

$
0
0

I have two lists:l1 = [1,2,2,4,5,5,6] l2 = [0,2,3,5,5,6,9]I'm trying to find the intersection of two lists, but when I find the solution, people always make it become 2 sets and then use intersection or &.Is there any library or module that helps me do that???

EXAMPLE IMAGE


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>