πŸ“Š Python
Q. What does the `strip()` method do in Python strings?
  • (A) Removes all characters
  • (B) Removes whitespace from the beginning and end
  • (C) Removes whitespace only at the end
  • (D) Removes whitespace only at the beginning
πŸ’¬ Discuss
βœ… Correct Answer: (B) Removes whitespace from the beginning and end

Explanation: `strip()` removes leading and trailing whitespace.

Explanation by: Mr. Dubey
`strip()` removes leading and trailing whitespace.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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