Считат ли разделите пропуски в python като ги изтриете от списъка
Примерен код
0
0
премахване на интервал, табулация от ред в python
import re
mystr = "I want to Remove all white \t spaces, new lines \n and tabs \t"
print re.sub(r"\W", "", mystr)
Output : IwanttoRemoveallwhitespacesnewlinesandtabs