strings = ["first", "", "second ", " "] strings = [x.strip() for x in strings if x.strip()]
๊ฒฐ๊ณผ : ["first", "second"]