History of Idiom 219 > diff from v37 to v38
Edit summary for version 38 by programming-idioms.org:
[Python] +DemoURL
[Python] +DemoURL
↷
Version 37
2021-12-23, 09:01:13
Version 38
2021-12-23, 09:05:18
Idiom #219 Replace multiple spaces with single space
Create string t from the value of string s with each sequence of spaces replaced by a single space.
Explain if only the space characters will be replaced, or the other whitespaces as well: tabs, newlines.
Idiom #219 Replace multiple spaces with single space
Create string t from the value of string s with each sequence of spaces replaced by a single space.
Explain if only the space characters will be replaced, or the other whitespaces as well: tabs, newlines.
Comments bubble
Works in Python 2 & Python 3.
Comments bubble
Works in Python 2 & Python 3.