Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5ca9b2

Browse files
author
Mark Devlin
committed
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
1 parent 5250e65 commit f5ca9b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ from numbers import Number, Integral, Real, Rational, Complex
226226
String
227227
------
228228
```python
229-
<str> = <str>.strip() # Strips all whitespace characters.
230-
<str> = <str>.strip('<chars>') # Strips all passed characters.
229+
<str> = <str>.strip() # Strips all whitespace characters from start and end.
230+
<str> = <str>.strip('<chars>') # Strips all passed characters from start and end.
231231
```
232232

233233
```python

0 commit comments

Comments
 (0)