Answers for "remove blank spaces from a list python"

1

remove blank spaces from a list python

for i in range(0,(len(list))):
        x = str(list[i]).strip(' ')
        list[i] = x
Posted by: Guest on April-24-2022
3

python remove spaces

string=' t e s t ' 
print(string.replace(' ',''))
Posted by: Guest on October-14-2020

Code answers related to "remove blank spaces from a list python"

Python Answers by Framework

Browse Popular Code Answers by Language