I need to transform the string:
"There are 6 spaces in this string."
to:
"Thereare6spacesinthisstring."
You can use replace
string = "There are 6 spaces in this string"
string = string.replace(' ', '')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With