[Solved] Why would the union of an empty set with another set results in an empty set in python? [closed]
[ad_1] No! The result of the union between the set empty and b is always b. a = set() b = set([1,2]) print a.union(b) #return {1, 2} The intersection between an empty set and anything is the set empty. print a.intersection(b) #return set() [ad_2] solved Why would the union of an empty set with another … Read more