Answers for "python how to remove new line from string"

13

python removing n from string

line = line.strip('n')
line = line.strip('t')
Posted by: Guest on February-21-2020
2

python remove new line

lines = ("line 1 rn")
lines.rstrip("nr")
Posted by: Guest on February-16-2021

Code answers related to "python how to remove new line from string"

Python Answers by Framework

Browse Popular Code Answers by Language