Suppose unordered listA = [1 2 3]
s.t all elements distinct
and unordered listB = [1 2 3 4 5]
s.t all elements distinct
original question was:
How do i choose len(listA)
times, elements of listB that,
are NOT in listA
and are distinct from eachother.
updated to:
How do i choose len(listB)-len(listA)
times, elements of listB that,
are NOT in listA
and are distinct from eachother.
For the updated case, the answer given by Pynchia becomes:
newList = list(set(bRightbLeft) - set(aLeft))[:len(bRightbLeft)-len(aLeft))]