Skip to content

Commit ca6cd5f

Browse files
committed
In operator
1 parent 2f70e1d commit ca6cd5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ List
2323
<list>.extend(<list>)
2424
<list> += [<el>]
2525
<list> += <list>
26+
<bool> = <el> in <list>
2627
```
2728

2829
```python
@@ -59,6 +60,7 @@ Dictionary
5960
<view> = <dict>.items()
6061
<value> = <dict>.get(key, default) # Returns default if key does not exist.
6162
<value> = <dict>.setdefault(key, default) # Same, but also adds default to dict.
63+
<bool> = key in <dict>
6264
<dict>.update(<dict>)
6365
```
6466

@@ -92,6 +94,7 @@ Set
9294
<set>.add(<el>)
9395
<set>.update(<set>)
9496
<set>.clear()
97+
<bool> = <el> in <set>
9598
```
9699

97100
```python

0 commit comments

Comments
 (0)