A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7, 8}

#Menggunakan operator ^ pada A
print(A ^ B)
print(B ^ A)

A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7, 8}
print(A.symmetric_difference(B))
print(B.symmetric_difference(A))
a9cc82dacf1815468e206a7665281c5b28f531af
<mask token>

<mask token>
print(A ^ B)
print(B ^ A)
<mask token>
print(A.symmetric_difference(B))
print(B.symmetric_difference(A))

A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7, 8}
print(A ^ B)
print(B ^ A)
A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7, 8}
print(A.symmetric_difference(B))
print(B.symmetric_difference(A))

A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7, 8}

#Menggunakan operator ^ pada A
print(A ^ B)
print(B ^ A)

A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7, 8}
print(A.symmetric_difference(B))
print(B.symmetric_difference(A))