lst=[[300,400,"","",""]] for i in range (len(lst)): for k,v in enumerate(lst[i]): if v=="": lst[i].pop(k)