find the 1st common element between 2 lists code example
Example 1: find number of common element in two python array
len([x for x in list1 if x in list2])
Example 2: same elements of two sets in python
x = {2, 3, 5, 6}
y = {1, 2, 3, 4}
z = x.intersection(y)