A = [s for s in A if s.strip() != ”]
or
A = [s for s in A if len(s.strip()) > 0]
1
solved How to remove str. Of spaces from list [closed]
A = [s for s in A if s.strip() != ”]
or
A = [s for s in A if len(s.strip()) > 0]
1
solved How to remove str. Of spaces from list [closed]