how to remove all the spaces in a string python code example
Example: how to remove spaces in string in python
sentence = ' hello apple '
sentence.strip()
>>> 'hello apple'
sentence = ' hello apple '
sentence.strip()
>>> 'hello apple'