Skip to content

Commit a2a2428

Browse files
committed
Dict, coroutine
1 parent f61f95c commit a2a2428

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
@@ -68,7 +68,7 @@ value = <dict>.setdefault(key, default) # Same, but also adds default to di
6868
```
6969

7070
```python
71-
<dict>.update(<dict>)
71+
<dict>.update(<dict>) # Or: dict_a = {**dict_a, **dict_b}.
7272
<dict> = dict(<list>) # Initiates a dict from list of key-value pairs.
7373
<dict> = dict(zip(keys, values)) # Initiates a dict from two lists.
7474
<dict> = dict.fromkeys(keys [, value]) # Initiates a dict from list of keys.
@@ -1209,7 +1209,7 @@ def printer():
12091209
item = (yield)
12101210
print(item)
12111211

1212-
reader(adder(printer()))
1212+
reader(adder(printer())) # 100, 101, ..., 109
12131213
```
12141214

12151215
<br><br>
@@ -1223,8 +1223,8 @@ Plot
12231223
# $ pip3 install matplotlib
12241224
from matplotlib import pyplot
12251225
pyplot.plot(<data_1> [, <data_2>, ...])
1226-
pyplot.show()
12271226
pyplot.savefig(<filename>, transparent=True)
1227+
pyplot.show()
12281228
```
12291229

12301230

0 commit comments

Comments
 (0)