A

Admin • 832.27K Points
Coach

Q. What does the `strip()` method do?

  • (A) Removes internal spaces
  • (B) Removes trailing spaces
  • (C) Removes leading and trailing spaces
  • (D) Replaces spaces with underscores
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`strip()` removes both leading and trailing whitespace from a string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.