Skip to content

Commit 669ae14

Browse files
committed
Dict
1 parent 6c28e91 commit 669ae14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ index = <list>.index(<el>) # Returns first index of item.
5555
Dictionary
5656
----------
5757
```python
58-
<dict>.update(<dict>)
5958
<view> = <dict>.keys()
6059
<view> = <dict>.values()
6160
<view> = <dict>.items()
@@ -69,8 +68,9 @@ value = <dict>.setdefault(key, default) # Same, but also adds default to di
6968
```
7069

7170
```python
72-
dict(<list>) # Initiates a dict from list of key-value pairs.
73-
dict(zip(keys, values)) # Initiates a dict from two lists.
71+
<dict>.update(<dict>)
72+
<dict> = dict(<list>) # Initiates a dict from list of key-value pairs.
73+
<dict> = dict(zip(keys, values)) # Initiates a dict from two lists.
7474
{k: v for k, v in <dict>.items() if k in <list>} # Filters a dict by keys.
7575
```
7676

0 commit comments

Comments
 (0)