Browse Source

In operator

pull/3/head
Jure Šorn 6 years ago
parent
commit
ca6cd5f0ca
1 changed files with 3 additions and 0 deletions
  1. 3
      README.md

3
README.md

@ -23,6 +23,7 @@ List
<list>.extend(<list>)
<list> += [<el>]
<list> += <list>
<bool> = <el> in <list>
```
```python
@ -59,6 +60,7 @@ Dictionary
<view> = <dict>.items()
<value> = <dict>.get(key, default) # Returns default if key does not exist.
<value> = <dict>.setdefault(key, default) # Same, but also adds default to dict.
<bool> = key in <dict>
<dict>.update(<dict>)
```
@ -92,6 +94,7 @@ Set
<set>.add(<el>)
<set>.update(<set>)
<set>.clear()
<bool> = <el> in <set>
```
```python

|||||||
100:0
Loading…
Cancel
Save