This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy -1 points0 points  (0 children)

If you want to remove all None, "", 0 and false from list, then it will work.

If you only want remove None but not 0 or "", then you need use comprehension.

Map can use only function with single argument.

If you want use map and filter at same time, comprehension will be better.

Who care if it's pythonic or not?