Skip to content

Commit c1846fb

Browse files
committed
✏️ Fix set examples
1 parent 5effbea commit c1846fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/types/sequences-sets/sets.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@ Union set
7474
x = {4, 2, 3, 2, 1}
7575
y = {3, 4, 5}
7676
>>> x.union(y)
77-
{0, 1, 2, 3, 4, 5}
77+
{1, 2, 3, 4, 5}
7878
7979
Intersection
8080
.. code-block:: pycon
8181
8282
>>> x.intersection(y)
83-
{3}
83+
{3, 4}
8484
8585
Difference or remainder set
8686

8787
.. code-block:: pycon
8888
8989
>>> x.difference(y)
90-
{0, 1, 2}
90+
{1, 2}
9191
9292
.. _frozenset:
9393

0 commit comments

Comments
 (0)