Q. Which method removes leading/trailing whitespace?

A
trim()
B
strip()
C
clean()
D
remove()
Solution:

strip() removes leading and trailing whitespace, e.g., ‘ text ‘.strip() = ‘text’.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!