Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf64b3fb

Browse files
authored
Merge pull requestwilfredinni#396 from decodingchris/patch-1
Typo in docs/cheatsheet/sets.md
2 parents9f63100 +381cff0 commitf64b3fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎docs/cheatsheet/sets.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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-
##setsymetric_difference
149+
##setsymmetric_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}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp