Hapus ruang kosong dari daftar ular python
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
string=' t e s t '
print(string.replace(' ',''))