how to remove whitespace in 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'