Human: Python: How to remove empty lists from a list? Assistant: 
Here is some code to get a new list `list2`by removing empty list from a list of lists `list1`

list2 = [x for x in list1 if x != []]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.