Union of 2 sets does not contain all items
Union of 2 sets does not contain all items Question: How come when I change the order of the two sets in the unions below, I get different results? set1 = {1, 2, 3} set2 = {True, False} print(set1 | set2) # {False, 1, 2, 3} print(set2 | set1) #{False, True, 2, 3} Asked By: …
Total answers: 4