Python String strip() Method - String strip python
- Views: 911 443
The strip() method returns a copy of the string with both leading and trailing characters removed (based on the string argument passed). Definition and Usage. The strip() method removes any leading (spaces at the beginning) and trailing (spaces at the end) characters (space is the default leading.