We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c015a29 commit a78a33fCopy full SHA for a78a33f
1 file changed
docs/types/sequences-sets/sets.rst
@@ -74,20 +74,20 @@ Union set
74
x = {4, 2, 3, 2, 1}
75
y = {3, 4, 5}
76
>>> x.union(y)
77
- {0, 1, 2, 3, 4, 5}
+ {1, 2, 3, 4, 5}
78
79
Intersection
80
.. code-block:: pycon
81
82
>>> x.intersection(y)
83
- {3}
+ {3, 4}
84
85
Difference or remainder set
86
87
88
89
>>> x.difference(y)
90
- {0, 1, 2}
+ {1, 2}
91
92
.. _frozenset:
93
0 commit comments