We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbad823 commit 122203eCopy full SHA for 122203e
1 file changed
_sources/functions/funcWithSetsAndDict.rst
@@ -215,17 +215,17 @@ You can use the following methods with sets.
215
216
Run this code to see what it prints.
217
~~~~
218
- # define two sets
+ # define the sets
219
s1 = {1, 2, 3}
220
s2 = {3, 4, 5}
221
+ s3 = {1, 3}
222
223
print(s1.difference(s2))
224
print(s1 - s2)
225
print(s2 - s1)
226
227
print(s1.issubset(s2))
228
print(s1 <= s2)
- s3 = {1, 3}
229
print(s3.issubset(s1))
230
231
0 commit comments