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