Let's say there is a variable a
, and it is declared like this:
a = "Hello World!"
And I want to make a condition. That is, if the spaces of a
is more than 1, then make the spaces of a
only one space. The result should be like this:
a = "Hello World!"
With only 1 space rather than two spaces. I could apply it on input
purposes as well.
Note: I wish to emphasize on sep
for this question.