Python: How to remove empty lists from a list?
Question or problem about Python programming: I have a list with empty lists in it: list1 = [[], [], [], [], [], ‘text’, ‘text2’, [], ‘moreText’] How can I remove the empty lists so that I get: list2 = [‘text’, ‘text2’, ‘moreText’] I tried list.remove(”) but that doesn’t work. How to solve the problem: Solution […]
Continue Reading