I have a list of elements:
x = [1,3,5,7,9]
y = [2,4,6,8,0]
Now I want to perform an operation which gives me the list in which "MOST OF" the elements in a third list z exist:
z = [2,3,5,7] #primes
I want to do it such that the list with "MOST OF" the items in z is returned,not the list with any element in z..
If it is not possible with lists, I am ready to work with tuples or sets as-well...
EDIT :
sample:
mostOf(z) -> x
since x contains most of the values in z