#Hi friends I want to shorten these codes I must control at least 100 space and delete please help

```
for i in range(mylist.count('')):
mylist.remove('')
for i in range(mylist.count(' ')): #delete 1 space
mylist.remove(' ')
for i in range(mylist.count(' ')): #delete 2 space
mylist.remove(' ')
for i in range(mylist.count(' ')): #delete 3 space
mylist.remove(' ')
...........................
# help 2 I want to shorten below codes how to
if len(text1)<> 0:
mylist.append(text1)
if len(text2) <> 0:
mylist.append(text2)
if len(text3) <> 0:
mylist.append(text3)
if len(text4) <> 0:
mylist.append(text4)
if len(text5) <> 0:
mylist.append(text5)
if len(text6) <> 0:
mylist.append(text6)
if len(text7) <> 0:
mylist.append(text7)
if len(text8) <> 0:
mylist.append(text8)
if len(text9) <> 0:
mylist.append(text9)
if len(text10) <> 0:
mylist.append(text10)
if len(text11) <> 0:
mylist.append(text11)
if len(text12) <> 0:
mylist.append(text12)
```