Write a function rid‒multiple‒blanks that will receive a string as an input argument. The string contains a sentence that has multiple blank spaces in between some of the words. The function will return the string with only one blank in between words. For example,
>> mystr = 'Hello and how are you?';>> rid‒multiple‒blanks(mystr)ans =Hello and how are you?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.