Q. What is the output of ‘ text ‘.strip()?

A
text
B
text
C
text
D
text
Solution:

strip() removes leading and trailing whitespace, resulting in ‘text’.

Entri Contact Image

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