The document describes four methods to remove spaces from a string variable: lstrip() removes leading spaces, rstrip() removes trailing spaces, strip() removes both leading and trailing spaces, and replace() removes all spaces.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
31 views1 page
Strip Method
The document describes four methods to remove spaces from a string variable: lstrip() removes leading spaces, rstrip() removes trailing spaces, strip() removes both leading and trailing spaces, and replace() removes all spaces.