I have two lists as below:
a = ['abc','def', 'ghi'], b=['ZYX','WVU']
and want to confirm whether union
of both lists is equal to superset
c = ['ZYX', 'def', 'WVU', 'ghi', 'abc']
I have tried following:
>>> print (c == list(set(b).union(c)))
>>> False
Can anybody show what I am missing here?