Browse Source

Slight correction to <str>.strip descriptions

Removes <chars> (or whitespace) from start of <str> up to the first
non-<chars> and from the end of <str> up to the last non-<chars>.

https://docs.python.org/3/library/stdtypes.html?highlight=strip#str.strip
pull/11/head
Mark Devlin 5 years ago
parent
commit
f5ca9b2c8a
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -226,8 +226,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 from start and end.
<str> = <str>.strip('<chars>') # Strips all passed characters from start and end.
```
```python

Loading…
Cancel
Save