A

Admin • 802.91K Points
Coach

Q. Which method can be used to remove whitespace from both ends of a string?

  • (A) strip()
  • (B) remove()
  • (C) trim()
  • (D) erase()
  • Correct Answer - Option(A)
  • Views: 6
  • 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.