I am trying to get rid of hyphens in words in a list through the below code
listA=['End-to-End Encryption']
listmain= '-'.join(listA).split('-')
The output I get is
['End', '', '', 'to', '', '', 'End', 'Encryption']
How do I get rid of unnecessary blank elements created
Ideal output required
['End', 'to', 'End', 'Encryption']
How to achieve this.