removing spaces in python code example
Example 1: remove after and before space python
st = " a "
strip(st)
#Output : "a"
Example 2: python remove spaces
string=' t e s t '
print(string.replace(' ',''))
st = " a "
strip(st)
#Output : "a"
string=' t e s t '
print(string.replace(' ',''))