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)

3rd Apr 2022, 7:51 AM
Reza Jaferyan
Reza Jaferyan - avatar
2 Respostas
0
set don't maintain order of inserted elements..
3rd Apr 2022, 12:26 PM
Jayakrishna 🇮🇳