how to check for common values in 2 lists in python code example Example: find number of common element in two python array len([x for x in list1 if x in list2])