Q. Which method can be used to remove whitespace from both ends of a string?

  • (A) strip()
  • (B) remove()
  • (C) trim()
  • (D) erase()
πŸ’¬ Discuss
βœ… Correct Answer: (A) strip()
Explanation: `strip()` removes leading and trailing whitespace.
Explanation by: Mr. Dubey
`strip()` removes leading and trailing whitespace.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
70
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate