Posted on 4th March 2024
The strip() method discards whitespace by default. Therefore there is no obligation to call it by parameters like '\t' and '\n'. But, strings within Python are permanent and cannot be changed, that is this line. strip() call will not modify that line object. The outcome is a new string that is returned by that call.
STILL GOT QUERIES?