Browse Source

Set

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

10
README.md

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

Loading…
Cancel
Save