Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l=[1, 0, 2, 0, 'hello', '', []]
- list(filter(bool, l))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement