remove white space string pythin code example
Example 1: python remove spaces
string=' t e s t '
print(string.replace(' ',''))
Example 2: delete spaces in string python
>>> s.replace(" ", "")
string=' t e s t '
print(string.replace(' ',''))
>>> s.replace(" ", "")