python remove spaces and \t code example
Example 1: replacing spaces in a string python
mystring.replace(" ", "_")
Example 2: python delete white spaces
sentence = ' hello apple'
sentence.strip()
>>> 'hello apple'
Example 3: remove after and before space python
st = " a "
strip(st)
#Output : "a"