Suppose s is " \tGood\tMorning\n". What is s.strip()?
The strip() method is used to removes characters from both left and right based on the argument (a string specifying the set of characters to be removed).
If the argument is not passed then all leading and trailing whitespaces are removed from the string.
The strip() method is used to returns a copy of the string with both leading and trailing characters stripped.
>>> s=" \tGood\tMorning\n"
>>> s.strip()
'Good\tMorning'
>>>