Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # remove_empties.py
- # note: will also remove the zero values
- z=25
- test=['',123,0,"",None,9,' ',False,'abc','',z,True,False,123,'0']
- result=filter(None, test)
- print result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement