Remove empty string from list,mylist[:] = [i for i in mylist if i != '']