Q. Which method can be used to remove whitespace from both ends of a string?
β
Correct Answer: (A)
strip()
Explanation: `strip()` removes leading and trailing whitespace.