History of Idiom 219 > diff from v8 to v9
Edit summary for version 9 by programming-idioms.org:
[Python] Comments: Python 2 & Python 3
[Python] Comments: Python 2 & Python 3
↷
Version 8
2020-03-02, 08:16:24
Version 9
2020-03-02, 17:19:23
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
Comments bubble
Works in Python 2 & Python 3.