removing-whitespace tag

1 questions


1 answers
98 views
0
I want to remove all blank characters in the string, but only the first and last spaces are removed

How do I get rid of all the gaps at the beginning, middle, and end of a string?My code only removes the spaces at the beginning and end, but I want to remove all the gapsdef my_handle(self): sentence ...


© 2024 OneMinuteCode. All rights reserved.