Published
- 1 min read
python removing \n from string
The solution for this is noted below
python removing \n from string
Solution
line = line.strip('\n')
line = line.strip('\t')
Try other methods by searching on the site. That is if this doesn’t work