CBSE Class 11 Computer Science Question 29 of 91

String Manipulation — Question 19

Back to all questions
19
Question

Question 19

Which of the following functions removes all leading and trailing spaces from a string?

  1. lstrip()
  2. rstrip()
  3. strip() ✓
  4. all of these
Answer