πŸ“Š Python
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

πŸ‘οΈ
40
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate