Answers for "same elements in two list python"

2

find number of common element in two python array

len([x for x in list1 if x in list2])
Posted by: Guest on October-21-2020
-1

python same values in two lists

a = {1, 2, 3, 4}
b = {3, 4, 5, 6}

a.intersection(b)
Posted by: Guest on February-17-2021

Code answers related to "same elements in two list python"

Python Answers by Framework

Browse Popular Code Answers by Language