From a2a2428d2bdb900db02fa7c534efc88b15e62b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 7 Jan 2019 05:39:28 +0100 Subject: [PATCH] Dict, coroutine --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c2162ff..3804aa2 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ value = .setdefault(key, default) # Same, but also adds default to di ``` ```python -.update() +.update() # Or: dict_a = {**dict_a, **dict_b}. = dict() # Initiates a dict from list of key-value pairs. = dict(zip(keys, values)) # Initiates a dict from two lists. = dict.fromkeys(keys [, value]) # Initiates a dict from list of keys. @@ -1209,7 +1209,7 @@ def printer(): item = (yield) print(item) -reader(adder(printer())) +reader(adder(printer())) # 100, 101, ..., 109 ```

@@ -1223,8 +1223,8 @@ Plot # $ pip3 install matplotlib from matplotlib import pyplot pyplot.plot( [, , ...]) -pyplot.show() pyplot.savefig(, transparent=True) +pyplot.show() ```