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