Python List Eliminar espacios
for i in range(0,(len(list))):
x = str(list[i]).strip(' ')
list[i] = x
Vihaking
for i in range(0,(len(list))):
x = str(list[i]).strip(' ')
list[i] = x
>>> import re
>>> re.sub(' +', ' ', 'The quick brown fox')
'The quick brown fox'