python Which method can be used to remove any whitespace from both the beginning and the end of a string? code example
Example: python delete white spaces
sentence = ' hello apple'
sentence.strip()
>>> 'hello apple'
sentence = ' hello apple'
sentence.strip()
>>> 'hello apple'