A

Admin • 832.27K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`strip()` removes leading and trailing whitespace.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.