Answers for "replace characters with whitespace in python"

1

add whitespaces between char python

s = "BINGO"
print(" ".join(s))
Posted by: Guest on February-23-2020
0

python 3 replace all whitespace characters

>>> s = " t foo n bar "
>>> "".join(s.split())
'foobar'
Posted by: Guest on November-13-2020

Code answers related to "replace characters with whitespace in python"

Python Answers by Framework

Browse Popular Code Answers by Language