File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ Both methods will remove an element from the set, but `remove()` will raise a `k
119119# {1, 2, 3, 4, 5}
120120```
121121
122- ## set intersection
122+ ## set intersection()
123123
124- ` intersection ` or ` & ` will return a set with only the elements that are common to all of them.
124+ ` intersection() ` or ` & ` will return a set with only the elements that are common to all of them.
125125
126126``` python
127127>> > s1 = {1 , 2 , 3 }
@@ -131,9 +131,9 @@ Both methods will remove an element from the set, but `remove()` will raise a `k
131131# {3}
132132```
133133
134- ## set difference
134+ ## set difference()
135135
136- ` difference ` or ` - ` will return only the elements that are unique to the first set (invoked set).
136+ ` difference() ` or ` - ` will return only the elements that are unique to the first set (invoked set).
137137
138138``` python
139139>> > s1 = {1 , 2 , 3 }
@@ -146,9 +146,9 @@ Both methods will remove an element from the set, but `remove()` will raise a `k
146146# {4}
147147```
148148
149- ## set symetric_difference
149+ ## set symmetric_difference()
150150
151- ` symetric_difference ` or ` ^ ` will return all the elements that are not common between them.
151+ ` symmetric_difference() ` or ` ^ ` will return all the elements that are not common between them.
152152
153153``` python
154154>> > s1 = {1 , 2 , 3 }
You can’t perform that action at this time.
0 commit comments