Python | insert space every 2 characters code example
Example 1: add whitespaces between char python
s = "BINGO"
print(" ".join(s))
Example 2: python 3 replace all whitespace characters
>>> s = " \t foo \n bar "
>>> "".join(s.split())
'foobar'
s = "BINGO"
print(" ".join(s))
>>> s = " \t foo \n bar "
>>> "".join(s.split())
'foobar'