I have the following list:
A = [x,y,z]
and I need help with writing a code in Python that returns True
if any combination of x or y or z is in the list, but returns False
if any other variables outside of A is in the list.
Example:
B = [x] (return True)
B = [l] (return False)
B = [x,z] (return True)
B = [x,y,z,l] (return False)