Source Code:
(back to article)
original_string = " This is a string with lots of whitespace. " modified_string = original_string.replace(" ", "") print(modified_string)
Result:
Report an issue