Usuń duplikat przestrzeni w sznurku w Pytoon
>>> import re
>>> re.sub(' +', ' ', 'The quick brown fox')
'The quick brown fox'
Fragile Flamingo
>>> import re
>>> re.sub(' +', ' ', 'The quick brown fox')
'The quick brown fox'