Answers for "how to replace a tab with a single space in python"

1

python replace all new lines with space

# you probably want to use a space ' ' to replace `n`
mystring = mystring.replace('n', ' ').replace('r', '')
Posted by: Guest on December-10-2021
0

python replace two spaces with one

" ".join(filter(bool, mystring.split(" ")))
Posted by: Guest on July-05-2021

Code answers related to "how to replace a tab with a single space in python"

Python Answers by Framework

Browse Popular Code Answers by Language