A

Admin • 833.24K Points
Coach

Q. What does the strip method do in Python?

  • (A) Removes characters from a string
  • (B) Replaces characters in a string
  • (C) Adds characters to a string
  • (D) Splits a string
  • Correct Answer - Option(A)
  • Views: 47
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The strip method removes leading and trailing spaces by default.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.