get a list `cleaned` that contains all non-empty elements in list `your_list`,cleaned = [x for x in your_list if x]