1.

Suppose s is “\t\tWorld\n”, what is s.strip()?(a) \t\tWorld\n(b) \t\tWorld\n(c) \t\tWORLD\n(d) WorldThe question was asked during an online exam.My question is based upon Strings in division Strings of Python

Answer» RIGHT CHOICE is (d) World

The EXPLANATION: Execute help(string.strip) to FIND details.


Discussion

No Comment Found

Related InterviewSolutions