left strip two spaces python code example
Example 1: delete space in string python
.replace(" ", "")
Example 2: python delete white spaces
sentence = ' hello apple'
sentence.strip()
>>> 'hello apple'
.replace(" ", "")
sentence = ' hello apple'
sentence.strip()
>>> 'hello apple'