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