Posted on 21st July 2024|20 views
Does python strip remove the new line?
Posted on 21st July 2024| views
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.