Q. Which method removes leading/trailing whitespace?
Solution:
strip() removes leading and trailing whitespace, e.g., ‘ text ‘.strip() = ‘text’.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
strip() removes leading and trailing whitespace, e.g., ‘ text ‘.strip() = ‘text’.
Strengthen Your Practice with our comprehensive question bank.