+ 2

Could someone please explain me why as the output of the code below 6 numbers are printed?

Could someone please explain me why as the output of the code below 6 numbers are printed?: set1={1,2,3,4,5,6} set2={4,5,6,7,8,9} set1.add(7) set2.add(10) print(set1^set2)

4th Dec 2019, 1:32 PM
Shamil Erkenov
Shamil Erkenov - avatar
5 Respostas
+ 5
Well done, guys, thank you very much ♥️
4th Dec 2019, 2:25 PM
Shamil Erkenov
Shamil Erkenov - avatar
+ 2
^ operator is used for symmetric difference. ~ swim ~ explained it well while I was typing 👍
4th Dec 2019, 2:01 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
De sexo
6th Dec 2019, 1:03 AM
genesis castillo
genesis castillo - avatar