how to remove spaces between strings in python code example
Example 1: remove after and before space python
st = " a "
strip(st)
#Output : "a"
Example 2: delete spaces in string python
>>> s.replace(" ", "")
st = " a "
strip(st)
#Output : "a"
>>> s.replace(" ", "")