Source Code:
(back to article)
meine_liste = ["hallo", "", "welt", "", "tschüss"] meine_liste = [x for x in meine_liste if x != ""] print(meine_liste)
Result:
Report an issue