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
119
119
# {1, 2, 3, 4, 5}
120
120
```
121
121
122
- ## set intersection
122
+ ## set intersection()
123
123
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.
125
125
126
126
``` python
127
127
>> > s1 = {1 , 2 , 3 }
@@ -131,9 +131,9 @@ Both methods will remove an element from the set, but `remove()` will raise a `k
131
131
# {3}
132
132
```
133
133
134
- ## set difference
134
+ ## set difference()
135
135
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).
137
137
138
138
``` python
139
139
>> > s1 = {1 , 2 , 3 }
@@ -146,9 +146,9 @@ Both methods will remove an element from the set, but `remove()` will raise a `k
146
146
# {4}
147
147
```
148
148
149
- ## set symetric_difference
149
+ ## set symmetric_difference()
150
150
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.
152
152
153
153
``` python
154
154
>> > s1 = {1 , 2 , 3 }
You can’t perform that action at this time.
0 commit comments