Source Code:
(back to article)
original_string = " some text with whitespace " stripped_string = original_string.strip() print(stripped_string) # Output: "some text with whitespace"
Result:
Report an issue