You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sources/functions/funcWithSetsAndDict.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ You can use the following methods with sets.
183
183
* set1.union(other_set) - returns a new set with all the items from ``set1`` and ``other_set``.
184
184
* set1.intersection(other_set) - returns a new set with just the items that are in both ``set1`` and ``other_set``.
185
185
* set1.difference(other_set) - returns a new set with the items in ``set1`` that are not in ``other_set``.
186
-
* set1.issubset(other_set) - returns True if ``set1`` is a subset (has some of the same elements and no other elements) of ``other_set``.
186
+
* set1.issubset(other_set) - returns True if ``set1`` is a subset (has some or all of the same elements and no other elements) of ``other_set``.
187
187
* set1.issuperset(other_set) - returns True if set1 is a superset (has all the same elments and may have other elements) of ``other_set``.
188
188
* set1.semmantic_difference(other_set) - returns a new set with the items that are in either ``set1`` or ``other_set``, but not both. This is also known as an exclusive or (XOR).
0 commit comments