H. String Methods (strip, lstrip, rstrip)

String strip() Method

- The strip() method erases the spaces in a string.



String lstrip() Method

- The lstrip() method erases the left side spaces in a string.



String rstrip() Method

- The rstrip() method erases the right side spaces in a string.

Comments