Post

PythonPython

S
Satish santu

Posted on 4th March 2024|15 views

0
votes

Strip Newline Python

Does python strip remove the new line?

Answers
P
James ROBERT

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.

 

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos