0
Can someone explain output of this code for me? Order of elements
x=set(["a","b","c","d"]) y=set(["g","h"]) print(x|y,x&y,x-y,x^y)
2 Answers
0
set don't maintain order of inserted elements..
x=set(["a","b","c","d"]) y=set(["g","h"]) print(x|y,x&y,x-y,x^y)