Browse Source

Dict

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

10
README.md

@ -45,11 +45,11 @@ index = <list>.index(<el>) # Returns first index of item.
Dictionary
----------
```python
<dict>.keys()
<dict>.values()
<dict>.items()
<dict>.get(key, default)
<dict>.setdefault(key, default)
<view> = <dict>.keys()
<view> = <dict>.values()
<view> = <dict>.items()
<value> = <dict>.get(key, default) # Returns default if key doesn't exist.
<value> = <dict>.setdefault(key, default) # Same, but also adds item to dict.
<dict>.update(<dict>)
```

Loading…
Cancel
Save