From d16bc314b67c78104929894abc0642a54f9960f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= <sornjure@gmail.com> Date: Sun, 27 Jan 2019 10:10:34 +0100 Subject: [PATCH] Dict --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6caf781..008f9c7 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ value = <dict>.setdefault(key, default) # Same, but also adds default to di ``` ```python -value = <dict>.pop(key) # Removes item from dictionary. +value = <dict>.pop(key) # Removes item from dictionary. {k: v for k, v in <dict>.items() if k in keys} # Filters dictionary by keys. ``` @@ -221,8 +221,8 @@ from numbers import Number, Integral, Real, Rational, Complex String ------ ```python -<str> = <str>.strip() # Strips all whitespace characters. -<str> = <str>.strip('<chars>') # Strips all passed characters. +<str> = <str>.strip() # Strips all whitespace characters. +<str> = <str>.strip('<chars>') # Strips all passed characters. ``` ```python